<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
    <!-- Work entry type on hr leave -->
    <record id="work_entry_type_leave_form_inherit" model="ir.ui.view">
        <field name="name">work_entry.type.leave.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="//group[@name='visual']" position="before">
                <group>
                    <group name="payroll" string="Payroll">
                        <field name="work_entry_type_id"/>
                    </group>
                </group>
            </xpath>
        </field>
    </record>

    <record id="hr_leave_view_tree_inherit_work_entry" model="ir.ui.view">
        <field name="name">hr.holidays.view.tree.inherit.work.entry</field>
        <field name="model">hr.leave</field>
        <field name="inherit_id" ref="hr_holidays.hr_leave_view_tree"/>
        <field name="mode">primary</field>
        <field name="arch" type="xml">
            <xpath expr="//tree" position="attributes">
                <attribute name="default_order">date_from</attribute>
            </xpath>
        </field>
    </record>

</odoo>
