Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
3376 Visninger

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
Kassér
Bedste svar

Hii,

Check By putting this.

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

Avatar
Kassér
Forfatter

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 Besvarelser Visninger Aktivitet
1
nov. 24
1609
1
aug. 15
7301
3
jan. 24
16210
1
mar. 15
5584
0
mar. 15
8936