Files
odoo-usability/hr_holidays_usability/hr_employee_view.xml
Alexis de Lattre 348e0205a0 Add traking on warn fields
WORK IN PROGRESS: port hr_holidays_usability
2017-04-05 19:22:01 +02:00

28 lines
1.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
© 2015-2017 Akretion (http://www.akretion.com)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_employee_form_leave_inherit" model="ir.ui.view">
<field name="name">hr_holidays_usability.hr.employee.form</field>
<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 -->
<xpath expr="//field[@name='remaining_leaves']/../.." position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='remaining_leaves']/../.." position="after">
<group name="holidays" string="Holidays">
<field name="holiday_exclude_mass_allocation"/>
</group>
</xpath>
</field>
</record>
</odoo>