From 21df6496976a133d9bce53363233b8f41eef025e Mon Sep 17 00:00:00 2001 From: Meera Trambadia Date: Thu, 26 Jul 2012 18:05:17 +0530 Subject: [PATCH] [IMP]:improved access rights and added ir.rule for HR/Officer bzr revid: mtr@tinyerp.com-20120726123517-l9gc3tn9efl8wwep --- addons/hr_holidays/security/ir.model.access.csv | 2 +- addons/hr_holidays/security/ir_rule.xml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/addons/hr_holidays/security/ir.model.access.csv b/addons/hr_holidays/security/ir.model.access.csv index d2e6c27cded..adb01b51e94 100644 --- a/addons/hr_holidays/security/ir.model.access.csv +++ b/addons/hr_holidays/security/ir.model.access.csv @@ -4,4 +4,4 @@ access_hr_holidays_user,hr.holidays.user,model_hr_holidays,base.group_hr_user,1, access_hr_holidays_employee,hr.holidays.employee,model_hr_holidays,base.group_user,1,1,1,1 access_hr_holydays_status_employee,hr.holidays.status employee,model_hr_holidays_status,base.group_user,1,0,0,0 access_hr_holidays_remain_user,hr.holidays.ramain.user,model_hr_holidays_remaining_leaves_user,base.group_hr_user,1,1,1,1 -access_resource_calendar_leaves_manager,resource_calendar_leaves_manager,resource.model_resource_calendar_leaves,base.group_hr_manager,1,1,1,1 +access_resource_calendar_leaves_manager,resource_calendar_leaves_manager,resource.model_resource_calendar_leaves,base.group_hr_user,1,1,1,1 diff --git a/addons/hr_holidays/security/ir_rule.xml b/addons/hr_holidays/security/ir_rule.xml index fab12354bf4..33d1a2c107f 100644 --- a/addons/hr_holidays/security/ir_rule.xml +++ b/addons/hr_holidays/security/ir_rule.xml @@ -7,5 +7,13 @@ [('employee_id.user_id','=',user.id)] + + + Holidays Officer + + [('employee_id.parent_id.user_id','=',user.id)] + + +