コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3328 ビュー

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 ?


アバター
破棄
最善の回答

Hii,

Check By putting this.

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

アバター
破棄
著作者

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.

関連投稿 返信 ビュー 活動
1
11月 24
1575
1
8月 15
7241
3
1月 24
16137
1
3月 15
5520
0
3月 15
8917