<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="hr_contract_form_inherit" model="ir.ui.view">
        <field name="name">hr.contract.form.inherit</field>
        <field name="model">hr.contract</field>
        <field name="inherit_id" ref="hr_contract.hr_contract_view_form"/>
        <field name="arch" type="xml">
            <data>
                <xpath expr="//field[@name='advantages']" position="after">
                    <field name="paid_hourly_timesheet"/>
                </xpath>
                <xpath expr="//div[@name='wage']/span" position="replace">
                    <span attrs="{'invisible': [('paid_hourly_timesheet', '=', True)]}">/ pay period</span>
                    <span attrs="{'invisible': [('paid_hourly_timesheet', '=', False)]}">/ hour</span>
                </xpath>
            </data>
        </field>
    </record>
</odoo>
