Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
13887 Widoki

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 ?

 

 

 

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

try :

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

Bye

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
mar 25
5970
0
gru 24
1091
1
maj 24
2602
2
sty 24
1763
1
wrz 23
1436