odoo/addons/hr/hr_demo.xml

103 lines
4.3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<record id="base.user_demo" model="res.users">
<field name="groups_id" eval="[(4, ref('base.group_hr_user'))]"/>
</record>
<!-- Employee Category -->
<record id="category_experience" model="hr.employee.category">
<field name="name">Experience</field>
</record>
<record id="category_sr_exec" model="hr.employee.category">
<field name="name">Senior (5 years)</field>
<field name="parent_id" ref="category_experience"/>
</record>
<record id="category_jr_exec" model="hr.employee.category">
<field name="name">Junior (6 months)</field>
<field name="parent_id" ref="category_experience"/>
</record>
<record id="category_trainee" model="hr.employee.category">
<field name="name">Trainee</field>
<field name="parent_id" ref="category_experience"/>
</record>
<record id="category_ranking" model="hr.employee.category">
<field name="name">Ranking</field>
</record>
<record id="category_ceo" model="hr.employee.category">
<field name="name">CEO</field>
<field name="parent_id" ref="category_ranking"/>
</record>
<record id="category_managers" model="hr.employee.category">
<field name="name">Executive Managers</field>
<field name="parent_id" ref="category_ranking"/>
</record>
<record id="category_employee" model="hr.employee.category">
<field name="name">Employees</field>
<field name="parent_id" ref="category_ranking"/>
</record>
<!-- Example employee -->
<record id="employee1" model="hr.employee">
<field name="name">Fabien Pinckaers</field>
<field name="calendar_id" ref="resource.timesheet_group1"/>
<field name="user_id" ref="base.user_root"/>
<field name="category_ids" eval="[(6, 0, [ref('category_sr_exec'),ref('category_ceo')])]"/>
</record>
<record id="employee3" model="hr.employee">
<field name="name">Antoine Philippe</field>
<field name="calendar_id" ref="resource.timesheet_group1"/>
<field name="user_id" ref="base.user_root"/>
<field name="parent_id" ref="employee1"/>
<field name="category_ids" eval="[(6, 0, [ref('category_trainee'),ref('category_employee')])]"/>
</record>
<record id="employee2" model="hr.employee">
<field name="name">Quentin Paolino</field>
<field name="calendar_id" ref="resource.timesheet_group1"/>
<field name="user_id" ref="base.user_demo"/>
<field name="parent_id" ref="employee3"/>
<field name="category_ids" eval="[(6, 0, [ref('category_jr_exec'),ref('category_managers')])]"/>
</record>
<record id="employee4" model="hr.employee">
<field name="name">John Smith</field>
<field name="calendar_id" ref="resource.timesheet_group1"/>
<field name="parent_id" ref="employee1"/>
<field name="category_ids" eval="[(6, 0, [ref('category_sr_exec'),ref('category_ceo')])]"/>
</record>
<record id="employee5" model="hr.employee">
<field name="name"> Thomas McQueen</field>
<field name="calendar_id" ref="resource.timesheet_group1"/>
<field name="parent_id" ref="employee4"/>
<field name="category_ids" eval="[(6, 0, [ref('category_jr_exec'),ref('category_managers')])]"/>
</record>
<record id="employee6" model="hr.employee">
<field name="name">Vanessa Dupont</field>
<field name="calendar_id" ref="resource.timesheet_group1"/>
<field name="parent_id" ref="employee4"/>
<field name="category_ids" eval="[(6, 0, [ref('category_trainee'),ref('category_employee')])]"/>
</record>
<record id="ir_ui_view_sc_employees_demo" model="ir.ui.view_sc">
<field name="name">Employees</field>
<field name="resource">ir.ui.menu</field>
<field name="user_id" ref="base.user_demo"/>
<field name="res_id" ref="hr.menu_open_view_employee_list_my"/>
</record>
</data>
</openerp>