[IMP]:improved code
[odoo/odoo.git] / addons / hr / res_config_view.xml
1 <openerp>
2     <data>
3
4         <record id="open_payroll_modules" model="ir.actions.act_window">
5             <field name="name">Payroll</field>
6             <field name="res_model">ir.module.module</field>
7             <field name="view_mode">kanban,tree,form</field>
8             <field name="context" eval="{'search_default_category_id': ref('base.module_category_localization'), 'search_default_name': 'payroll'}"/>
9             <field name="search_view_id" ref="base.view_module_filter"/>
10         </record>
11
12         <record id="view_human_resources_configuration" model="ir.ui.view">
13             <field name="name">hr settings</field>
14             <field name="model">hr.config.settings</field>
15             <field name="type">form</field>
16             <field name="arch" type="xml">
17                 <form string="Configure Human Resources" version="7.0">
18                     <header>
19                         <button string="Apply" type="object" name="execute" class="oe_highlight"/>
20                         or
21                         <button string="Cancel" type="object" name="cancel" class="oe_link"/>
22                     </header>
23                     <separator string="Additional Features"/>
24                     <group>
25                         <label for="id" string="Additional Features"/>
26                         <div>
27                             <div>
28                                 <field name="module_hr_expense" class="oe_inline"/>
29                                 <label for="module_hr_expense"/>
30                             </div>
31                             <div>
32                                 <field name="module_hr_evaluation" class="oe_inline"/>
33                                 <label for="module_hr_evaluation"/>
34                             </div>
35                             <div>
36                                 <field name="module_hr_holidays" class="oe_inline"/>
37                                 <label for="module_hr_holidays"/>
38                             </div>
39                             <div>
40                                 <field name="module_hr_recruitment" class="oe_inline"/>
41                                 <label for="module_hr_recruitment"/>
42                             </div>
43                             <div>
44                                 <field name="module_hr_contract" class="oe_inline"/>
45                                 <label for="module_hr_contract"/>
46                             </div>
47                             <div name="hr_payroll">
48                                 <field name="module_hr_payroll" class="oe_inline"/>
49                                 <label for="module_hr_payroll"/>
50                                 <button name="%(open_payroll_modules)d" type="action"
51                                     string="Install Country-Specific Payroll" icon="gtk-go-forward"
52                                     attrs="{'invisible': [('module_hr_payroll','=',False)]}" class="oe_link"/>
53                             </div>
54                         </div>
55                     </group>
56                     <separator string="Timesheets"/>
57                     <group name="timesheet_grp">
58                         <label for="id" string="Timesheet Features"/>
59                         <div>
60                             <div>
61                                 <field name="module_hr_attendance" on_change="onchange_hr_attendance(module_hr_attendance)" class="oe_inline"/>
62                                 <label for="module_hr_attendance"/>
63                             </div>
64                             <div>
65                                 <field name="module_hr_timesheet" on_change="onchange_hr_timesheet(module_hr_timesheet)" class="oe_inline"/>
66                                 <label for="module_hr_timesheet"/>
67                             </div>
68                             <div name="hr_timesheet">
69                                 <field name="module_hr_timesheet_sheet" class="oe_inline"/>
70                                 <label for="module_hr_timesheet_sheet"/>
71                             </div>
72                         </div>
73                     </group>
74                 </form>
75             </field>
76         </record>
77
78         <record id="action_human_resources_configuration" model="ir.actions.act_window">
79             <field name="name">Configure Human Resources</field>
80             <field name="res_model">hr.config.settings</field>
81             <field name="view_id" ref="view_human_resources_configuration"/>
82             <field name="view_mode">form</field>
83             <field name="target">inline</field>
84         </record>
85
86         <menuitem id="menu_human_resources_configuration" name="Human Resources" parent="base.menu_config"
87             sequence="15" action="action_human_resources_configuration"/>
88
89     </data>
90 </openerp>