[IMP] Clean hr_* module (Still need to done)
[odoo/odoo.git] / addons / hr / hr_installer.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3   <data>
4
5     <record id="view_hr_installer" model="ir.ui.view">
6       <field name="name">hr.installer.view</field>
7       <field name="model">hr.installer</field>
8       <field name="type">form</field>
9       <field name="inherit_id" ref="base.res_config_installer"/>
10       <field name="arch" type="xml">
11         <data>
12             <form position="attributes">
13                 <attribute name="string">Select Human Resources Modules To Install</attribute>
14             </form>
15             <separator string="title" position="attributes">
16                 <attribute name="string">Select Human Resources Modules To Install</attribute>
17             </separator>
18             <xpath expr='//separator[@string="vsep"]' position='attributes'>
19                 <attribute name='string'></attribute>
20             </xpath>
21             <xpath expr="//label[@string='description']" position="attributes">
22                 <attribute name="string">The base Human Resources addon will help you manage your employee roster, but you can enhance it even further by installing a few HR-related applications.</attribute>
23             </xpath>
24           <group colspan="8">
25             <field name="hr_holidays"/>
26             <field name="hr_expense"/>
27             <field name="hr_recruitment"/>
28             <field name="hr_timesheet_sheet"/>
29             <field name="hr_contract"/>
30             <field name="hr_evaluation"/>
31             <field name="hr_attendance"/>
32           </group>
33           <xpath expr="//button[@string='Install Modules']" position="attributes">
34               <attribute name="string">Configure</attribute>
35           </xpath>
36         </data>
37       </field>
38     </record>
39
40     <record id="action_hr_installer" model="ir.actions.act_window">
41       <field name="name">Human Resources Modules Installation</field>
42       <field name="type">ir.actions.act_window</field>
43       <field name="res_model">hr.installer</field>
44       <field name="view_id" ref="view_hr_installer"/>
45       <field name="view_type">form</field>
46       <field name="view_mode">form</field>
47       <field name="target">new</field>
48     </record>
49
50     <record id="hr_installer_todo" model="ir.actions.todo">
51       <field name="action_id" ref="action_hr_installer"/>
52       <field name="sequence">3</field>
53     </record>
54
55     <record id="hr_ir_actions_todo_tree" model="ir.ui.view">
56         <field name="model">ir.actions.todo</field>
57         <field name="name">hr_installer_action_replace</field>
58         <field name="type">tree</field>
59         <field name="inherit_id" ref="base.ir_actions_todo_tree"/>
60         <field name="arch" type="xml">
61            <xpath expr="//button[@string='Launch']" position="replace">
62             <button name="%(action_hr_installer)d" states="open,skip" string="Launch" type="action" icon="gtk-execute" help="Launch Configuration Wizard"/>
63               </xpath>
64         </field>
65     </record>
66
67   </data>
68 </openerp>