Skip to Content
Menu
This question has been flagged
2 Replies
3418 Zobrazenia

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
Zrušiť
Autor 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
Zrušiť
Best Answer

Hi,

Don't use false as a string.

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

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
aug 24
7705
1
sep 23
2390
7
jún 20
6784
7
júl 18
20825
0
nov 22
80