Skip to Content
Menú
This question has been flagged
2 Respostes
3486 Vistes

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
Descartar
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
Descartar
Best Answer

Hi,

Don't use false as a string.

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
d’ag. 24
7797
1
de set. 23
2465
7
de juny 20
6884
7
de jul. 18
20946
0
de nov. 22
80