<?xml version="1.0" encoding="utf-8"?>
<terp>
    <data>
        
        <!--
	======================
	department
	======================
	-->
        <record id="view_department_form" model="ir.ui.view">
            <field name="name">hr.department.form</field>
            <field name="model">hr.department</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="department">
                    <notebook>
                        <page string="Department">
                            <field colspan="4" name="name" select="1"/>
                            <field name="company_id" select="1"/>
                            <field name="parent_id" select="2"/>
                            <field colspan="4" name="manager_id" select="1"/>
                            <field colspan="4" name="member_ids"/>
                        </page>
                        <page string="Notes">
                            <field colspan="4" name="note" nolabel="1"/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>
        <record id="view_department_tree" model="ir.ui.view">
            <field name="name">hr.department.tree</field>
            <field name="model">hr.department</field>
            <field name="type">tree</field>
            <field name="field_parent">child_ids</field>
            <field name="arch" type="xml">
                <tree string="Companies">
                    <field name="name"/>
                    <field name="company_id"/>
                    <field name="manager_id"/>
                </tree>
            </field>
        </record>
        <record id="open_module_tree_department_tree" model="ir.actions.act_window">
            <field name="name">Departments</field>
            <field name="res_model">hr.department</field>
            <field name="view_type">tree</field>
            <field name="domain">[('parent_id','=',False)]</field>
        </record>
        <menuitem action="open_module_tree_department_tree" id="menu_department_tree" parent="base.menu_users"/>
        
        <record id="open_module_tree_department" model="ir.actions.act_window">
            <field name="name">Departments</field>
            <field name="res_model">hr.department</field>
            <field name="view_type">form</field>
        </record>
        
        <menuitem action="open_module_tree_department" id="menu_department_def" parent="hr.menu_department_tree"/>
        
    </data>
</terp>