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
3699 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
8072
1
wrz 23
2677
7
cze 20
7174
7
lip 18
21229
0
lis 22
80