<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="view_department_form" model="ir.ui.view">
        <field name="model">hr.department</field>
        <field name="inherit_id" ref="hr.view_department_form" />
        <field name="arch" type="xml">
            <field name="active" position="after">
                <div class="oe_title">
                    <label for="code" class="oe_edit_only" />
                    <h1>
                        <field name="code" />
                    </h1>
                </div>
            </field>
        </field>
    </record>
    <record id="view_department_tree" model="ir.ui.view">
        <field name="model">hr.department</field>
        <field name="inherit_id" ref="hr.view_department_tree" />
        <field name="arch" type="xml">
            <field name="display_name" position="after">
                <field name="code" optional="show" />
            </field>
        </field>
    </record>
    <record id="view_department_filter" model="ir.ui.view">
        <field name="model">hr.department</field>
        <field name="inherit_id" ref="hr.view_department_filter" />
        <field name="arch" type="xml">
            <field name="name" position="attributes">
                <attribute name="filter_domain">
                    ['|', ('name','ilike',self), ('code','ilike',self)]
                </attribute>
            </field>
        </field>
    </record>
</odoo>
