跳至內容
選單
此問題已被標幟
1 回覆
13985 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
3月 25
6074
0
12月 24
1188
1
5月 24
2709
2
1月 24
1859
1
9月 23
1533