Launchpad automatic translations update.
[odoo/odoo.git] / addons / hr / hr_department_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <!--
6     ======================
7     department
8     ======================
9     -->
10         <record id="view_department_form" model="ir.ui.view">
11             <field name="name">hr.department.form</field>
12             <field name="model">hr.department</field>
13             <field name="type">form</field>
14             <field name="arch" type="xml">
15                 <form string="department">
16                     <field colspan="4" name="name" select="1"/>
17                     <field name="company_id" select="1" widget="selection" groups="base.group_multi_company"/>
18                     <field name="parent_id" select="2"/>
19                     <field colspan="4" name="manager_id" select="1"/>
20                     <notebook colspan="4" >
21                         <page string="Members">
22                             <field colspan="4" name="member_ids" nolabel="1"/>
23                         </page>
24                         <page string="Notes">
25                             <field colspan="4" name="note" nolabel="1"/>
26                         </page>
27                     </notebook>
28                 </form>
29             </field>
30         </record>
31         <record id="view_department_tree" model="ir.ui.view">
32             <field name="name">hr.department.tree</field>
33             <field name="model">hr.department</field>
34             <field name="type">tree</field>
35             <field name="field_parent">child_ids</field>
36             <field name="arch" type="xml">
37                 <tree string="Companies">
38                     <field name="name"/>
39                     <field name="company_id" groups="base.group_multi_company"/>
40                     <field name="manager_id"/>
41                 </tree>
42             </field>
43         </record>
44         <record id="open_module_tree_department_tree" model="ir.actions.act_window">
45             <field name="name">Departments</field>
46             <field name="res_model">hr.department</field>
47             <field name="view_type">tree</field>
48             <field name="domain">[('parent_id','=',False)]</field>
49         </record>
50         <menuitem 
51             action="open_module_tree_department_tree" 
52             id="menu_department_tree" 
53             parent="hr.menu_hr_employee"/>
54
55         <record id="open_module_tree_department" model="ir.actions.act_window">
56             <field name="name">Departments</field>
57             <field name="res_model">hr.department</field>
58             <field name="view_type">form</field>
59         </record>
60
61         <menuitem
62             action="open_module_tree_department" 
63             id="menu_department_def" 
64             parent="hr.menu_hr_employee"/>
65
66         <!-- res.users inherit -->
67         <record model="ir.ui.view" id="view_users_form_inherit">
68             <field name="name">res.users.form</field>
69             <field name="type">form</field>
70             <field name="model">res.users</field>
71             <field name="inherit_id" ref="base.view_users_form"/>
72             <field name="arch" type="xml">
73                 <notebook position="inside">
74                     <page string="Departements Informations">
75                         <separator string="Managers" colspan="4"/>
76                         <field name="parent_id" nolabel="1" colspan="4"/>
77                         <separator string="Subordinates" colspan="4"/>
78                         <field name="child_ids" nolabel="1" colspan="4"/>
79                     </page>
80                 </notebook>
81             </field>
82         </record>
83
84     </data>
85 </openerp>