<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="hr_departure_wizard_view_form" model="ir.ui.view">
        <field name="name">hr.departure.wizard.view.form.extend</field>
        <field name="model">hr.departure.wizard</field>
        <field name="inherit_id" ref="hr.hr_departure_wizard_view_form" />
        <field name="arch" type="xml">
            <xpath expr="//div[@id='activities_label']" position="attributes">
                <attribute name="invisible">0</attribute>
            </xpath>
            <xpath expr="//div[@id='activities']" position="attributes">
                <attribute name="invisible">0</attribute>
            </xpath>
            <xpath expr="//field[@name='departure_date']" position="replace">
                <field name="departure_date" string="Contract End Date"/>
            </xpath>
            <xpath expr="//div[@id='activities']" position="inside">
                <div><field name="set_date_end"/><label for="set_date_end" string="Contract"/></div>
            </xpath>
        </field>
    </record>
</odoo>
