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

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?

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أغسطس 22
6748
0
نوفمبر 17
6576
4
سبتمبر 17
25376
1
يناير 16
4489
1
مارس 15
7919