Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3327 Tampilan

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 ?


Avatar
Buang
Jawaban Terbai

Hii,

Check By putting this.

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

Avatar
Buang
Penulis

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.

Post Terkait Replies Tampilan Aktivitas
1
Nov 24
1573
1
Agu 15
7241
3
Jan 24
16136
1
Mar 15
5518
0
Mar 15
8917