Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
3635 Vizualizări

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

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Hi Mohammed,

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

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

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

Don't use false as a string.

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
aug. 24
8000
1
sept. 23
2613
7
iun. 20
7089
7
iul. 18
21143
0
nov. 22
80