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

Hello guys , 

I need help with filtering , i am using domain filtering to filter products , the child_of operator allows me to select the products that are a child node of my selection criteria for example child of categ_id  94.

'product_id': fields.many2one('product.product','Product', domain="[('categ_id', 'child_of', 94)]", required=True)

is there a domain operator that shows all products that are not in the child_of a certain node. basically a opposite of child_of ?

 

 

 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

try :

domain="['!',('categ_id','child_of',[10, 20, 25])]"

Bye

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 25
6170
0
ธ.ค. 24
1248
1
พ.ค. 24
2762
2
ม.ค. 24
1926
1
ก.ย. 23
1605