<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <!-- ============================================================ -->
    <!-- Extend hr.contract Form — add Payroll tab                    -->
    <!-- ============================================================ -->
    <record id="view_hr_contract_form_inherit_payroll" model="ir.ui.view">
        <field name="name">hr.contract.form.inherit.c2c.payroll</field>
        <field name="model">hr.contract</field>
        <field name="inherit_id" ref="hr_contract.hr_contract_view_form"/>
        <field name="arch" type="xml">
            <xpath expr="//notebook" position="inside">
                <page string="Payroll" name="payroll_tab">
                    <group>
                        <group string="Salary">
                            <field name="salary_structure_id"/>
                            <field name="gross_salary"/>
                        </group>
                        <group string="Deduction Applicability">
                            <field name="pf_applicable"/>
                            <field name="esi_applicable"/>
                        </group>
                    </group>
                </page>
            </xpath>
        </field>
    </record>
</odoo>
