<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2023 CreuBlanca
     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>

    <record model="ir.ui.view" id="hr_leave_form_view">
        <field name="name">hr.leave.form (in hr_holidays_auto_extend)</field>
        <field name="model">hr.leave</field>
        <field name="inherit_id" ref="hr_holidays.hr_leave_view_form_manager" />
        <field name="arch" type="xml">
            <field name="name" position="after">
                <field name="auto_extend_type" invisible="1" />
                <field
                    name="auto_extend"
                    groups="hr_holidays.group_hr_holidays_user"
                    widget="boolean_toggle"
                    attrs="{'invisible':[('auto_extend_type', '=', False), ('auto_extend', '=', False)]}"
                />
                <field
                    name="auto_extend_period"
                    groups="hr_holidays.group_hr_holidays_user"
                    attrs="{'invisible':[('auto_extend', '=', False)]}"
                />
            </field>
        </field>
    </record>



</odoo>
