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

Hello,


How can I implement a rule for a user id to see only the records that he is assigned to but also the records that are in new state but not assigned to anyone.


My code so far will :



Own complaints

['|', ('state', 'in', ['new']), ('technician', '=', user.id)]

Odoo 13 CE.


Thank you !

形象
丢弃
最佳答案

Try this

['|', '&', ('state', 'in', ['new']), ('technician', '=', False), ('technician', '=', user.id)]
形象
丢弃
编写者

I tried you way before but the conditions were not in the correct order and did not work.

Now it works like a charm. Thank you !

相关帖文 回复 查看 活动
5
9月 20
12831
2
3月 15
7530
0
3月 15
3982
1
3月 15
5306
0
3月 15
4216