<?xml version="1.0" encoding="utf-8" ?>
<odoo>

    <record id="view_holidays_status_filter" model="ir.ui.view">
        <field name="name">hr.leave.type.filter</field>
        <field name="model">hr.leave.type</field>
        <field name="inherit_id" ref="hr_holidays.view_holidays_status_filter" />
        <field name="arch" type="xml">
            <field name="name" position="after">
                <field name="code" position="after" />
            </field>
        </field>
    </record>

    <record id="edit_holiday_status_form" model="ir.ui.view">
        <field name="name">hr.leave.type.form</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="//h1[field[@name='name']]" position="after">
                <group>
                    <field name="code" />
                </group>
            </xpath>
        </field>
    </record>

    <record id="hr_holiday_status_view_kanban" model="ir.ui.view">
        <field name="name">hr.leave.type.kanban</field>
        <field name="model">hr.leave.type</field>
        <field name="inherit_id" ref="hr_holidays.hr_holiday_status_view_kanban" />
        <field name="arch" type="xml">
            <xpath expr="//strong[field[@name='name']]" position="before">
                <t t-if="record.code.raw_value">
                    <field name="code" /> -
                </t>
            </xpath>
        </field>
    </record>

</odoo>
