Skip to Content
मेन्यू
This question has been flagged
1 Reply
3324 Views

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
Discard
Best Answer

Hii,

Check By putting this.

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

Avatar
Discard
Author

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 Replies Views Activity
1
नव॰ 24
1570
1
अग॰ 15
7241
3
जन॰ 24
16133
1
मार्च 15
5512
0
मार्च 15
8914