Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
13992 Visualizzazioni

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
Abbandona
Risposta migliore

Hi,

try :

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

Bye

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mar 25
6082
0
dic 24
1190
1
mag 24
2712
2
gen 24
1868
1
set 23
1544