summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2016-09-20 11:58:05 +0200
committerYannick Tivisse <yti@odoo.com>2016-09-20 12:01:53 +0200
commitbf1bfb06fed4cdc1270eefab02a28ea24d67fa95 (patch)
treee8e0a727169536367908b6870842f82bf4fc30d0
parent2c4bc2ffceed83514fadc8d0987269cae11afae7 (diff)
[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.
-rw-r--r--addons/hr_holidays/security/hr_holidays_security.xml2
1 files changed, 1 insertions, 1 deletions
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 @@
<record id="property_rule_holidays_employee_write" model="ir.rule">
<field name="name">Employee Holidays Create, Write, Unlink</field>
<field name="model_id" ref="model_hr_holidays"/>
- <field name="domain_force">[('employee_id.user_id','=',user.id), ('state', 'in', ['draft', 'confirm', 'cancel'])]</field>
+ <field name="domain_force">[('employee_id.user_id','=',user.id), ('state', 'in', ['draft', 'confirm', 'cancel', 'refuse'])]</field>
<field name="perm_read" eval="False"/>
<field name="groups" eval="[(4,ref('base.group_user'))]"/>
</record>