Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2624 Widoki

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 !

Awatar
Odrzuć
Najlepsza odpowiedź

Try this

['|', '&', ('state', 'in', ['new']), ('technician', '=', False), ('technician', '=', user.id)]
Awatar
Odrzuć
Autor

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 !

Powiązane posty Odpowiedzi Widoki Czynność
5
wrz 20
12789
2
mar 15
7458
0
mar 15
3919
1
mar 15
5242
0
mar 15
4128