[IMP]:account & installer wizards
[odoo/odoo.git] / addons / hr / hr_installer.xml
1 <openerp>
2   <data>
3     <record id="view_hr_installer" model="ir.ui.view">
4       <field name="name">hr.installer.view</field>
5       <field name="model">hr.installer</field>
6       <field name="type">form</field>
7       <field name="inherit_id" ref="base.res_config_installer"/>
8       <field name="arch" type="xml">
9         <data>
10           <form position="attributes">
11             <attribute name="string">Select Human Resources Modules To Install</attribute>
12           </form>
13
14           <separator string="title" position="attributes">
15             <attribute name="string">Select Human Resources Modules To Install</attribute>
16           </separator>
17            <xpath expr='//separator[@string="vsep"]' position='attributes'>
18                           <attribute name='string'></attribute>
19                         </xpath>
20           <xpath expr="//label[@string='description']"
21                  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    <record id="hr_ir_actions_todo_tree" model="ir.ui.view">
55     <field name="model">ir.actions.todo</field>
56     <field name="name">hr_installer_action_replace</field>
57     <field name="type">tree</field>
58     <field name="inherit_id" ref="base.ir_actions_todo_tree"/>
59         <field name="arch" type="xml">
60                  <xpath expr="//button[@string='Launch']" position="replace">
61                 <button name="%(action_hr_installer)d" states="open,skip" string="Launch" type="action" icon="gtk-execute" help="Launch Configuration Wizard"/>
62                 </xpath>
63         </field>
64         </record>
65   </data>
66 </openerp>