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

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 ?

 

 

 

Avatar
Buang
Jawaban Terbai

Hi,

try :

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

Bye

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Mar 25
6141
0
Des 24
1226
1
Mei 24
2737
2
Jan 24
1906
1
Sep 23
1585