class parent
category_id many2one
child_ids
class child
parent_id
product_id
so,on select category at parent form view
then select only product related to category
class parent
category_id many2one
child_ids
class child
parent_id
product_id
so,on select category at parent form view
then select only product related to category
Hi,
Please try with the below domain. Add it into the child product id field.
domain="[('category_id', '=', parent.category_id)]"
Hope it will help you.
Up vote please.
Invalid composed field farm_materials.category_id in domain of ([('categ_id', '=', farm_materials.category_id)])
also
ValueError: Invalid composed field materials.category_id in domain of ([('categ_id', '=', materials.category_id)])
No Not that way.
you have to use the "parent" key on a right side of the domain. Not 'farm_materials' or 'materials'.
please take the reference from here :
https://github.com/odoo/odoo/blob/15.0/addons/account/views/account_move_views.xml#L902
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
0
Nis 22
|
4023 | |||
|
0
Mar 26
|
16 | |||
|
Timesheet App in backoffice
Çözüldü
|
2
Mar 26
|
4426 | ||
|
2
Eki 25
|
5929 | |||
|
1
Eyl 25
|
5399 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.