跳至內容
選單
此問題已被標幟
2 回覆
3465 瀏覽次數

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
7782
1
9月 23
2441
7
6月 20
6854
7
7月 18
20915
0
11月 22
80