跳至内容
菜单
此问题已终结
1 回复
3464 查看

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
1725
1
8月 15
7405
3
1月 24
16348
1
3月 15
5694
0
3月 15
9119