Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3361 Lượt xem

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 ?


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hii,

Check By putting this.

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 24
1589
1
thg 8 15
7281
3
thg 1 24
16191
1
thg 3 15
5570
0
thg 3 15
8926