Skip to Content
मेन्यू
This question has been flagged
1 Reply
2626 Views

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
Discard
Best Answer

Try this

['|', '&', ('state', 'in', ['new']), ('technician', '=', False), ('technician', '=', user.id)]
Avatar
Discard
Author

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 Views Activity
5
सित॰ 20
12790
2
मार्च 15
7458
0
मार्च 15
3922
1
मार्च 15
5244
0
मार्च 15
4133