Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3468 Widoki

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

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Hi Mohammed,

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

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

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

Don't use false as a string.

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sie 24
7785
1
wrz 23
2446
7
cze 20
6855
7
lip 18
20925
0
lis 22
80