İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2629 Görünümler

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
Vazgeç
En İyi Yanıt

Try this

['|', '&', ('state', 'in', ['new']), ('technician', '=', False), ('technician', '=', user.id)]
Avatar
Vazgeç
Üretici

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 !

İlgili Gönderiler Cevaplar Görünümler Aktivite
5
Eyl 20
12792
2
Mar 15
7462
0
Mar 15
3937
1
Mar 15
5266
0
Mar 15
4168