跳至内容
菜单
此问题已终结

I need, for an automated action, to exclude all task with the tag "closed", it work when a task only have the tag "closed", but as soon as there is two tag (including the "closed" one) it doesn't work.

Do you know a solution that doesn't involved writing code in python ?

形象
丢弃
最佳答案

Hello Mike Hallan,

Please find below code it may help you to resolve this issue, 

Please find code in comment. 

With this domain, when the automated action runs, it will exclude all tasks that have the "closed" tag, regardless of whether they have other tags. This should address your requirement to exclude tasks with the "closed" tag, even when they have additional tags.

I hope this will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com     

Skype: kalpeshmaheshwari

形象
丢弃

Please find code here :-

In the "Domain" field, you can use the domain expression to exclude tasks with the "closed" tag

['!', ('tag_ids.name', '=', 'closed'), ('model', '=', 'project.task')]

相关帖文 回复 查看 活动
1
1月 23
3218
4
3月 24
6576
1
10月 23
2638
0
3月 23
1616
1
6月 20
4838