<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data noupdate="1">

        <record id="dep_management" model="hr.department">
            <field name="name">Management</field>
            <field name="company_id" ref="base.main_company"/>
            <field name="manager_id" ref="employee1"/>
        </record>

        <record id="dep_administration" model="hr.department">
            <field name="name">Administration</field>
            <field name="parent_id" ref="dep_management"/>
            <field name="company_id" ref="base.main_company"/>
            <field name="manager_id" ref="employee1"/>
        </record>

        <record id="dep_technical" model="hr.department">
            <field name="name">Technical department</field>
            <field name="parent_id" ref="dep_management"/>
            <field name="company_id" ref="base.main_company"/>
            <field name="manager_id" ref="employee3"/>
        </record>

        <record id="dep_it" model="hr.department">
            <field name="name">IT</field>
            <field name="parent_id" ref="dep_technical"/>
            <field name="company_id" ref="base.main_company"/>
        </record>

        <record id="dep_marketing" model="hr.department">
            <field name="name">Marketing</field>
            <field name="parent_id" ref="dep_management"/>
            <field name="company_id" ref="base.main_company"/>
            <field name="manager_id" ref="employee2"/>
        </record>

        <record id="dep_sales" model="hr.department">
            <field name="name">Sales</field>
            <field name="company_id" ref="base.main_company"/>
            <field name="parent_id" ref="dep_management"/>
        </record>

        <record id="dep_sales_europe" model="hr.department">
            <field name="name">Sales Europe</field>
            <field name="company_id" ref="base.main_company"/>
            <field name="parent_id" ref="dep_sales"/>
        </record>

        <record id="dep_sales_america" model="hr.department">
            <field name="name">Sales America</field>
            <field name="company_id" ref="base.main_company"/>
            <field name="parent_id" ref="dep_sales"/>
        </record>

        <!-- HR Jobs -->

        <record id="job_ceo" model="hr.job">
            <field name="name">CEO</field>
            <field name="department_id" ref="dep_management"/>
        </record>

        <record id="job_cto" model="hr.job">
            <field name="name">CTO</field>
            <field name="department_id" ref="dep_technical"/>
        </record>

        <record id="job_hr_manager" model="hr.job">
            <field name="name">HR Manager</field>
            <field name="department_id" ref="dep_management"/>
        </record>

        <record id="job_project_managers" model="hr.job">
            <field name="name">Project Managers</field>
            <field name="department_id" ref="dep_it"/>
        </record>

        <record id="job_sr_appli" model="hr.job">
            <field name="name">Senior Application Analyst</field>
            <field name="department_id" ref="dep_it"/>
        </record>

        <record id="job_jr_appli" model="hr.job">
            <field name="name">Junior Application Analyst</field>
            <field name="department_id" ref="dep_it"/>
        </record>

        <record id="job_sr_developers" model="hr.job">
            <field name="name">Senior Developers</field>
            <field name="department_id" ref="dep_it"/>
        </record>

        <record id="job_jr_developers" model="hr.job">
            <field name="name">Junior Developers</field>
            <field name="department_id" ref="dep_it"/>
        </record>

        <record id="job_trainee" model="hr.job">
            <field name="name">Trainee</field>
            <field name="department_id" ref="dep_it"/>
        </record>

        <!-- assign department on employee -->
        <record id="employee2" model="hr.employee">
            <field name="department_id" ref="hr.dep_technical"/>
        </record>

        <record id="employee3" model="hr.employee">
            <field name="department_id" ref="dep_sales"/>
        </record>

    </data>
</openerp>
