Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3559 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Hi Mohammed,

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

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Don't use false as a string.

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 24
7923
1
thg 9 23
2534
7
thg 6 20
6984
7
thg 7 18
21049
0
thg 11 22
80