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

Good afternoon,

Please could you confirm the underlying reasons for the appended record rule not working for the designated group of users :

record id="sales_manager_rule" model="ir.rule">

sales manager can only view the records pending approval

[('state','!=','rm_approval_pending')]

There is already a standard record rule with the domain ['|',('company_id','=',False),('company_id', 'in', company_ids)], which possibly could be superceding my record rule - In such a case, how to make my record rule work as this is very important for my project.

An early response will be much appreciated.


Thanks & Regards,

Debendra 


อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Thank you for your reply - However, I do not want to deactivate the standard record rule as this might affect other areas of the CRM module. Therefore, please could you suggest any other option available to make my record rule work for CRM.LEAD module in ODOO 16?


Regards,

Debendra 

อวตาร
ละทิ้ง
ผู้เขียน

Meanwhile, I deactivated the standard record rule with the domain ['|',('company_id','=',False),('company_id', 'in', company_ids)] , but to no avail - Meaning , my record rule fails to filter the desired records for the users in the specific group.

Please could you help?

คำตอบที่ดีที่สุด

You can create a single record rule that combines the conditions of both rules, instead of having separate rules. For example, you can use a domain like ['|', ('company_id', '=', False), ('company_id', 'in', company_ids), ('state', '!=', 'rm_approval_pending')].

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Count Related Records แก้ไขแล้ว
1
ม.ค. 21
4075
1
ธ.ค. 17
6489
1
เม.ย. 25
711
3
ก.ค. 24
2244
2
เม.ย. 24
1639