Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2803 Visualizzazioni

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
Abbandona
Risposta migliore

Try this

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

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 !

Post correlati Risposte Visualizzazioni Attività
5
set 20
12997
2
mar 15
7735
0
mar 15
4180
1
mar 15
5510
0
mar 15
4375