[IMP]improve button name
[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="Human Resources Management"/>
24                     <group>
25                         <label for="id" string="Additional Features"/>
26                         <div>
27                             <div>
28                                 <field name="module_hr_holidays" class="oe_inline"/>
29                                 <label for="module_hr_holidays"/>
30                             </div>
31                             <div>
32                                 <field name="module_hr_expense" class="oe_inline"/>
33                                 <label for="module_hr_expense"/>
34                             </div>
35                             <div>
36                                 <field name="module_hr_evaluation" class="oe_inline"/>
37                                 <label for="module_hr_evaluation"/>
38                             </div>
39                             <div>
40                                 <field name="module_hr_contract" class="oe_inline"/>
41                                 <label for="module_hr_contract"/>
42                             </div>
43                             <div name="hr_payroll">
44                                 <field name="module_hr_payroll" class="oe_inline"/>
45                                 <label for="module_hr_payroll"/>
46                                 <button name="%(open_payroll_modules)d" type="action"
47                                     string="install your country's payroll" icon="gtk-go-forward"
48                                     attrs="{'invisible': [('module_hr_payroll','=',False)]}" class="oe_link"/>
49                             </div>
50                         </div>
51                     </group>
52                     <group name="timesheet_grp">
53                         <label for="id" string="Time Tracking"/>
54                         <div>
55                             <div>
56                                 <field name="module_hr_attendance" on_change="onchange_hr_attendance(module_hr_attendance)" class="oe_inline"/>
57                                 <label for="module_hr_attendance"/>
58                             </div>
59                             <div>
60                                 <field name="module_hr_timesheet" on_change="onchange_hr_timesheet(module_hr_timesheet)" class="oe_inline"/>
61                                 <label for="module_hr_timesheet"/>
62                             </div>
63                             <div name="hr_timesheet">
64                                 <field name="module_hr_timesheet_sheet" class="oe_inline"/>
65                                 <label for="module_hr_timesheet_sheet"/>
66                             </div>
67                         </div>
68                     </group>
69                     <group name="recruitment_grp">
70                         <label for="id" string="Recruitment"/>
71                         <div name="recruitment">
72                             <div>
73                                 <field name="module_hr_recruitment" class="oe_inline"/>
74                                 <label for="module_hr_recruitment"/>
75                             </div>
76                         </div>
77                     </group>
78                 </form>
79             </field>
80         </record>
81
82         <record id="action_human_resources_configuration" model="ir.actions.act_window">
83             <field name="name">Configure Human Resources</field>
84             <field name="res_model">hr.config.settings</field>
85             <field name="view_id" ref="view_human_resources_configuration"/>
86             <field name="view_mode">form</field>
87             <field name="target">inline</field>
88         </record>
89
90         <menuitem id="menu_human_resources_configuration" name="Human Resources" parent="base.menu_config"
91             sequence="15" action="action_human_resources_configuration"/>
92
93     </data>
94 </openerp>