Skip to Content
Menu
This question has been flagged
2 Replies
3334 Rodiniai

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

Portretas
Atmesti
Autorius Best Answer

Hi Mohammed,

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

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

Portretas
Atmesti
Best Answer

Hi,

Don't use false as a string.

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugp. 24
7613
1
rugs. 23
2304
7
birž. 20
6677
7
liep. 18
20730
0
lapkr. 22
80