Skip to Content
Menu
This question has been flagged
2 Replies
2439 Views

How can I filter a Many2Many field for containing zero items.

Example: I'm trying to filter tasks that have 0 followers (message_follower_ids).

[['message_follower_ids','=','False']] Returns no results, but there should be many.


Frank

Avatar
Discard
Author Best Answer

Hi Mohammed,

I've tried this. But it also gives no results.

<filter string="Task without follower(s)" domain="[('message_follower_ids', '=', False)]"/>

Avatar
Discard
Best Answer

Hi,

Don't use false as a string.

try this ('message_follower_ids', '=', False)

Avatar
Discard
Related Posts Replies Views Activity
1
Aug 24
5862
1
Sep 23
1078
7
Jun 20
5337
7
Jul 18
19399
0
Nov 22
80