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

Hii,

We want to show sales orders according to the employee hierarchy. In Employees App we have Sales Managers, Sales Supervisors and Salesmen.

Sales Manager can see all sales orders. Sales Supervisor can see sales orders of his team only. 

One sales team like Healthcare has 5 supervisors. Right now all supervisors can see their so's. 

Can we fix this by adding employee id on sales.order table?   

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

Hi,

Its all about record rules, by default in the sales app, we have three user groups,

  1. User: Own Documents Only

  2. User: All Documents

  3. Administrator / Manager

For the user group, own documents can view only their sales records and for the group user all documents can others record also.

For your case, you can alter the existing record rules accordingly or create new record rules.

Have a loot at this:

  1. Security in Odoo

  2. Record Rules in Odoo

Thanks

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

Thank you Raphy,

You are right and I am using these three user groups.

We have many supervisors in a team and salesmen are under it. We want supervisors should not see other supervisor sales orders. How to restrict it in a record rule. I did the same in Appraisal App, because appraisal app has employee id.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
4653
1
มี.ค. 15
4703
Add pdf file to quote แก้ไขแล้ว
1
ก.ย. 25
405
error when adding the sales app แก้ไขแล้ว
2
ก.ย. 25
504
3
ก.ย. 25
531