Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3359 Представления

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.

Related Posts Ответы Просмотры Активность
1
нояб. 24
1588
1
авг. 15
7281
3
янв. 24
16188
1
мар. 15
5566
0
мар. 15
8926