<?xml version='1.0' encoding='utf-8' ?>
<odoo>
    <record id="hr_leave_allocation_view_form_manager_inherit" model="ir.ui.view">
        <field name="name">hr.leave.allocation.view.form.manager</field>
        <field name="model">hr.leave.allocation</field>
        <field
            name="inherit_id"
            ref="hr_holidays.hr_leave_allocation_view_form_manager"
        />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='employee_ids']" position="attributes">
                <attribute name="context">{'hr_leave_allocation': True}</attribute>
            </xpath>
        </field>
    </record>
    <record id="hr_leave_view_form_inherit" model="ir.ui.view">
        <field name="name">hr.leave.view.form.manager</field>
        <field name="model">hr.leave</field>
        <field name="inherit_id" ref="hr_holidays.hr_leave_view_form_manager" />
        <field name="arch" type="xml">
            <xpath
                expr="//field[@name='holiday_status_id']/..//field[@name='employee_ids']"
                position="attributes"
            >
                <attribute name="context">{'hr_leave': True}</attribute>
            </xpath>
        </field>
    </record>
</odoo>
