<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <record id="hr_leave_type_view_form" model="ir.ui.view">
        <field name="name">hr.leave.type.view.form.inherit</field>
        <field name="model">hr.leave.type</field>
        <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
        <field name="arch" type="xml">
            <xpath expr="//field[@name='request_unit']" position="after">
                <field name="hr_attendance_overtime" invisible="1" />
                <field name="overtime_deductible" invisible="not hr_attendance_overtime"/>
            </xpath>
        </field>
    </record>
</odoo>
