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

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
12857
2
3月 15
7587
0
3月 15
4011
1
3月 15
5343
0
3月 15
4229