[IMP]minor changes
[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                     <group>
24                         <group string="Additional Features" name="left_column">
25                             <field name="module_hr_expense"/>
26                             <field name="module_hr_evaluation"/>
27                             <field name="module_hr_holidays"/>
28                             <field name="module_hr_recruitment"/>
29                             <field name="module_hr_contract"/>
30                             <label for="module_hr_payroll"/>
31                             <div>
32                                 <field name="module_hr_payroll"/>
33                                 <button name="%(open_payroll_modules)d" type="action"
34                                     string="Install Country-Specific Payroll" icon="gtk-go-forward"
35                                     attrs="{'invisible': [('module_hr_payroll','=',False)]}"/>
36                             </div>
37                         </group>
38                         <group string="Timesheets" name="right_column">
39                             <field name="module_hr_attendance" on_change="onchange_hr_attendance(module_hr_attendance)"/>
40                             <field name="module_hr_timesheet" on_change="onchange_hr_timesheet(module_hr_timesheet)"/>
41                             <field name="module_hr_timesheet_sheet"/>
42                         </group>
43                     </group>
44                 </form>
45             </field>
46         </record>
47
48         <record id="action_human_resources_configuration" model="ir.actions.act_window">
49             <field name="name">Configure Human Resources</field>
50             <field name="res_model">hr.config.settings</field>
51             <field name="view_id" ref="view_human_resources_configuration"/>
52             <field name="view_mode">form</field>
53             <field name="target">inline</field>
54         </record>
55
56         <menuitem id="menu_human_resources_configuration" name="Human Resources" parent="base.menu_config"
57             sequence="15" action="action_human_resources_configuration"/>
58
59     </data>
60 </openerp>