跳至內容
選單
此問題已被標幟
1 回覆
3326 瀏覽次數

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
1573
1
8月 15
7241
3
1月 24
16135
1
3月 15
5516
0
3月 15
8915