Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
3445 Visualizzazioni

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
Abbandona
Autore Risposta migliore

Hi Mohammed,

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

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

Avatar
Abbandona
Risposta migliore

Hi,

Don't use false as a string.

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
ago 24
7746
1
set 23
2415
7
giu 20
6830
7
lug 18
20885
0
nov 22
80