Hie,

I like to do a domain to search in m2m field.

An example about party module:

Categories:

* Cat1 - Id 1
* Cat2 - Id 2

Parties:

* Party 1 -> Cat1
* Party 2 -> Cat1+Cat2
* Party 3 -> Cat2

I like to find all parties and condition/domain is "not in" Cat2. I try:

[('categories', 'not in', [2])

The result is:

Party1 + Party2

I understand why I get Party2, but I don't know how to do a domain to get
all parties and exclude all categories Id 2. Any ideas?

The result I expect is:

* Party1

Because Party 2 and Party 3 are in category ID 2 = Exclude it.

Thanks

-- 
Raimon

Reply via email to