تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2670 أدوات العرض

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 !

المنشورات ذات الصلة الردود أدوات العرض النشاط
5
سبتمبر 20
12868
2
مارس 15
7591
0
مارس 15
4030
1
مارس 15
5343
0
مارس 15
4247