From bf1bfb06fed4cdc1270eefab02a28ea24d67fa95 Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Tue, 20 Sep 2016 11:58:05 +0200 Subject: [PATCH] [FIX] hr_holidays: Allow a employee to reset to draft his own leaves If a leave request is refused by the manager, the button reset to draft is displayed, but the employee cannot use it because he doesn't have the write access rights on his own leave requests In 'refuse' state, all the form is readonly, but the employee should be have to reset his own leave to draft to modify it and re-submit it. --- 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 1ab627ff22e..b930939d271 100644 --- a/addons/hr_holidays/security/hr_holidays_security.xml +++ b/addons/hr_holidays/security/hr_holidays_security.xml @@ -30,7 +30,7 @@ Employee Holidays Create, Write, Unlink - [('employee_id.user_id','=',user.id), ('state', 'in', ['draft', 'confirm', 'cancel'])] + [('employee_id.user_id','=',user.id), ('state', 'in', ['draft', 'confirm', 'cancel', 'refuse'])]