Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
3419 Ansichten

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
Verwerfen
Beste Antwort

Hii,

Check By putting this.

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

Avatar
Verwerfen
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.

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Nov. 24
1683
1
Aug. 15
7347
3
Jan. 24
16289
1
März 15
5653
0
März 15
9040