Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2977 Tampilan

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
Buang
Jawaban Terbai

Try this

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

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 Terkait Replies Tampilan Aktivitas
5
Sep 20
13221
2
Mar 15
8001
0
Mar 15
4420
1
Mar 15
5811
0
Mar 15
4614