Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2649 Weergaven

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
Annuleer
Beste antwoord

Try this

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

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 !

Gerelateerde posts Antwoorden Weergaven Activiteit
5
sep. 20
12834
2
mrt. 15
7536
0
mrt. 15
3984
1
mrt. 15
5308
0
mrt. 15
4216