Skip to Content
Menú
This question has been flagged
1 Respondre
2695 Vistes

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 !

Avatar
Descartar
Best Answer

Try this

['|', '&', ('state', 'in', ['new']), ('technician', '=', False), ('technician', '=', user.id)]
Avatar
Descartar
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 !

Related Posts Respostes Vistes Activitat
5
de set. 20
12892
2
de març 15
7628
0
de març 15
4054
1
de març 15
5381
0
de març 15
4282