Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
13914 Weergaven

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
Annuleer
Beste antwoord

Hi,

try :

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

Bye

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
mrt. 25
6009
0
dec. 24
1126
1
mei 24
2637
2
jan. 24
1777
1
sep. 23
1451