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

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 ?

 

 

 

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

Hi,

try :

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

Bye

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 25
6083
0
thg 12 24
1193
1
thg 5 24
2712
2
thg 1 24
1870
1
thg 9 23
1546