<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="hr_contract_view_tree" model="ir.ui.view">
        <field name="name">hr.contract.tree</field>
        <field name="model">hr.contract</field>
        <field name="inherit_id" ref="hr_contract.hr_contract_view_tree" />
        <field name="arch" type="xml">
            <field name="job_id" position="after">
                <field name="professional_category_id" optional="show" />
            </field>
        </field>
    </record>
    <record id="hr_contract_view_search" model="ir.ui.view">
        <field name="name">hr.contract.search</field>
        <field name="model">hr.contract</field>
        <field name="inherit_id" ref="hr_contract.hr_contract_view_search" />
        <field name="arch" type="xml">
            <field name="job_id" position="after">
                <field name="professional_category_id" />
            </field>
            <filter name="group_by_job" position="after">
                <filter
                    string="Professional Category"
                    name="group_by_professional_category_id"
                    domain="[]"
                    context="{'group_by': 'professional_category_id'}"
                />
            </filter>
        </field>
    </record>
    <record id="hr_contract_view_form" model="ir.ui.view">
        <field name="name">hr.contract.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="department_id" position="after">
                <field name="professional_category_id" />
            </field>
        </field>
    </record>
</odoo>
