[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)" <chs@odoo.com>
This commit is contained in:
Toufik Ben Jaa
2019-03-05 10:45:00 +00:00
parent 9cbf7cd464
commit 2bebbdefc2
@@ -45,7 +45,7 @@
<record id="hr_leave_rule_team_leader_update" model="ir.rule">
<field name="name">Leaves: Team Leader: write on employee's leaves in his team</field>
<field name="model_id" ref="model_hr_leave"/>
<field name="domain_force">[('employee_id.leave_manager_id', '=' , user.id)]</field>
<field name="domain_force">['|', ('employee_id.leave_manager_id', '=' , user.id), ('employee_id.parent_id.user_id', '=' , user.id)]</field>
<field name="perm_read" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_unlink" eval="False"/>