Add option on employees to exclude from mass allocation

This commit is contained in:
Alexis de Lattre
2015-10-15 18:35:00 +02:00
parent 13f9a51bff
commit 340bd0857d
3 changed files with 18 additions and 3 deletions

View File

@@ -12,9 +12,16 @@
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr_holidays.view_employee_form_leave_inherit"/>
<field name="arch" type="xml">
<!-- too difficult to hide the inside of the Leave group
so I hide the whole group and re-create one -->
<group string="Leaves" position="attributes">
<attribute name="invisible">1</attribute>
</group>
<group string="Leaves" position="after">
<group name="holidays" string="Holidays">
<field name="holiday_exclude_mass_allocation"/>
</group>
</group>
</field>
</record>