From 2bebbdefc2e781ae510b9f9d8fd7db039499fb8c Mon Sep 17 00:00:00 2001 From: Toufik Ben Jaa Date: Tue, 5 Mar 2019 10:45:00 +0000 Subject: [PATCH] [FIX] hr_holidays: allow employee's manager to approve employee's leaves - Allow users with the "Holidays Team Leader rights" to approve the leaves of the employees they manage. closes odoo/odoo#31586 Signed-off-by: "Christophe Simonis (chs)" --- addons/hr_holidays/security/hr_holidays_security.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_holidays/security/hr_holidays_security.xml b/addons/hr_holidays/security/hr_holidays_security.xml index 176429eaac8..015dea9c712 100644 --- a/addons/hr_holidays/security/hr_holidays_security.xml +++ b/addons/hr_holidays/security/hr_holidays_security.xml @@ -45,7 +45,7 @@ Leaves: Team Leader: write on employee's leaves in his team - [('employee_id.leave_manager_id', '=' , user.id)] + ['|', ('employee_id.leave_manager_id', '=' , user.id), ('employee_id.parent_id.user_id', '=' , user.id)]