Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3323 Vizualizări

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 ?


Imagine profil
Abandonează
Cel mai bun răspuns

Hii,

Check By putting this.

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

Imagine profil
Abandonează
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.

Related Posts Răspunsuri Vizualizări Activitate
1
nov. 24
1566
1
aug. 15
7240
3
ian. 24
16133
1
mar. 15
5510
0
mar. 15
8911