跳至内容
菜单
此问题已终结
2 回复
3496 查看

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

形象
丢弃
编写者 最佳答案

Hi Mohammed,

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

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

形象
丢弃
最佳答案

Hi,

Don't use false as a string.

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

形象
丢弃
相关帖文 回复 查看 活动
1
8月 24
7808
1
9月 23
2472
7
6月 20
6901
7
7月 18
20959
0
11月 22
80