Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2737 มุมมอง

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 !

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Try this

['|', '&', ('state', 'in', ['new']), ('technician', '=', False), ('technician', '=', user.id)]
อวตาร
ละทิ้ง
ผู้เขียน

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 !

Related Posts ตอบกลับ มุมมอง กิจกรรม
5
ก.ย. 20
12923
2
มี.ค. 15
7648
0
มี.ค. 15
4091
1
มี.ค. 15
5432
0
มี.ค. 15
4320