Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
2832 Vues

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
Ignorer
Meilleure réponse

Try this

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

Publications associées Réponses Vues Activité
5
sept. 20
13031
2
mars 15
7763
0
mars 15
4194
1
mars 15
5565
0
mars 15
4410