Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3370 Widoki

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 ?


Awatar
Odrzuć
Najlepsza odpowiedź

Hii,

Check By putting this.

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

Awatar
Odrzuć
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.

Powiązane posty Odpowiedzi Widoki Czynność
1
lis 24
1602
1
sie 15
7294
3
sty 24
16200
1
mar 15
5582
0
mar 15
8933