Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3378 Zobrazení

Hello all ,


Is it possible to do record rule like this : 


['|',('company_id','=',False),('company_id','=',[product.company_id.id])]


As i keep getting an error :

Can i say in a record rule i want the company id to equal the product.product company_id ?


Avatar
Zrušit
Nejlepší odpověď

Hii,

Check By putting this.

['|',('company_id','=',False),('company_id','child_of',[product.company_id.id])]

Avatar
Zrušit
Autor

could explain the reason behind product instead product.product ?

product.product is a model and product is variable that will have to store product and product.product have company id in this model.

Related Posts Odpovědi Zobrazení Aktivita
1
lis 24
1611
1
srp 15
7305
3
led 24
16213
1
bře 15
5585
0
bře 15
8937