Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3372 มุมมอง

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
1602
1
ส.ค. 15
7294
How to Use Selection on Many2one Field ? แก้ไขแล้ว
3
ม.ค. 24
16204
1
มี.ค. 15
5582
0
มี.ค. 15
8934