Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
3373 Näkymät

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
Hylkää
Paras vastaus

Hii,

Check By putting this.

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

Avatar
Hylkää
Tekijä

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.

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
marrask. 24
1603
1
elok. 15
7296
3
tammik. 24
16205
1
maalisk. 15
5582
0
maalisk. 15
8934