コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2677 ビュー

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
12875
2
3月 15
7607
0
3月 15
4041
1
3月 15
5355
0
3月 15
4261