Skip to Content
Menu
This question has been flagged
1 Atsakyti
3474 Rodiniai

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 ?


Portretas
Atmesti
Best Answer

Hii,

Check By putting this.

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

Portretas
Atmesti
Autorius

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 Rodiniai Veikla
1
lapkr. 24
1731
1
rugp. 15
7410
3
saus. 24
16353
1
kov. 15
5701
0
kov. 15
9123