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

Hello,

I'm trying to modify the access control list of Leave Requests to approve under  Leave managements module.

I need to make the Leave Requests to approve menu only accessed by each employee's manager.

ea. if the company has 10 employees under Sales/marketing and 5 employees under IT department. I need the sales manager access his 10 employees' leave requests only and not able to access the rest of company's employees who are not under his authority.
To do it, I modified the record rule domain definition of Leaves officer from [(1,'=',1)] to [('employee_id.parent_id,'=',user.id)]
but it didn't work. How to fix it?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ส.ค. 22
6830
0
พ.ย. 17
6635
4
ก.ย. 17
25454
Many2one fields are not showing แก้ไขแล้ว
1
ม.ค. 16
4557
1
มี.ค. 15
8008