<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <!-- Inherited Contract view -->
    <record id="hr_contract_view_form" model="ir.ui.view">
        <field name="name">hr.contract.view.form</field>
        <field name="model">hr.contract</field>
        <field name="inherit_id" ref="hr_contract.hr_contract_view_form" />
        <field name="arch" type="xml">
            <field name="job_id" position="attributes">
                <attribute name="readonly">1</attribute>
            </field>
            <group name="top_info_right" position="after">
                <group string="Job Positions" name="group_contract">
                    <field name="contract_job_ids">
                        <tree editable="bottom">
                            <field name="job_id" />
                            <field name="is_main_job" />
                        </tree>
                    </field>
                </group>
            </group>
        </field>
    </record>
</odoo>
