Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
13955 Представления

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 ?

 

 

 

Аватар
Отменить
Лучший ответ

Hi,

try :

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

Bye

Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
мар. 25
6033
0
дек. 24
1145
1
мая 24
2645
2
янв. 24
1786
1
сент. 23
1463