Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3462 Zobrazení

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šit
Autor Nejlepší odpověď

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šit
Nejlepší odpověď

Hi,

Don't use false as a string.

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
srp 24
7780
1
zář 23
2437
7
čvn 20
6854
7
čvc 18
20913
0
lis 22
80