Skip to Content
Menu
This question has been flagged
1 Atsakyti
2724 Rodiniai

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 !

Portretas
Atmesti
Best Answer

Try this

['|', '&', ('state', 'in', ['new']), ('technician', '=', False), ('technician', '=', user.id)]
Portretas
Atmesti
Autorius

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 Replies Rodiniai Veikla
5
rugs. 20
12903
2
kov. 15
7635
0
kov. 15
4075
1
kov. 15
5403
0
kov. 15
4298