Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
3444 Представления

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)

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
авг. 24
7741
1
сент. 23
2413
7
июн. 20
6824
7
июл. 18
20882
0
нояб. 22
80