Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
3440 Vistas

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 Mejor respuesta

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
Mejor respuesta

Hi,

Don't use false as a string.

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

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
ago 24
7737
1
sept 23
2411
7
jun 20
6823
7
jul 18
20881
0
nov 22
80