Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
13872 Zobrazení

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
Zrušit
Nejlepší odpověď

Hi,

try :

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

Bye

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
bře 25
5956
0
pro 24
1070
1
kvě 24
2585
2
led 24
1760
1
zář 23
1434