[IMP] hr*: rename model of config wizard to hr.config.settings
[odoo/odoo.git] / addons / hr_expense / hr_expense_installer_view.xml
1 <openerp>
2   <data>
3         <record id="product_expense_installer_tree_view" model="ir.ui.view">
4             <field name="name">product.product.tree</field>
5             <field name="model">product.product</field>
6             <field name="type">tree</field>
7             <field eval="7" name="priority"/>
8             <field name="arch" type="xml">
9                 <tree editable="bottom" string="Products">
10                     <field name="name"/>
11                     <field name="standard_price"/>
12                     <field name="list_price"/>
13                     <field name="uom_id" string="UoM"/>
14                 </tree>
15             </field>
16         </record> 
17  
18         <record model="ir.actions.act_window" id="product_normal_form_view_installer">
19            <field name="name">Review Your Expenses Products</field>
20            <field name="type">ir.actions.act_window</field>
21            <field name="res_model">product.product</field>
22            <field name="view_type">form</field>
23            <field name="view_mode">tree,form</field>
24            <field name="context" eval="'{\'default_type\':\'service\',\'default_procure_method\':\'make_to_stock\',\'default_supply_method\':\'buy\',\'default_purchase_ok\':True, \'default_sale_ok\':False, \'default_hr_expense_ok\':True,\'default_categ_id\': ' + str(ref('cat_expense')) +'}'"/>
25            <field name="domain">[('hr_expense_ok','=',True)]</field>
26            <field name="view_id" ref="product_expense_installer_tree_view"/>
27            <field name="help">Define one product for each expense type allowed for an employee (travel by car, hostel, restaurant, etc). If you reimburse the employees at a fixed rate, set a cost and a unit of measure on the product. If you reimburse based on real costs, set the cost at 0.00. The user will set the real price when recording his expense sheet.</field>
28        </record>
29
30        <record id="product_normal_form_view_todo" model="ir.actions.todo">
31            <field name="action_id" ref="product_normal_form_view_installer"/>
32            <field name="category_id" ref="hr.category_hr_management_config"/>
33            <field name="sequence">3</field>
34        </record>
35            
36         <!-- Hr Configuration wizard -->
37
38         <record id="view_expenseconfig_wizard_inherit" model="ir.ui.view">
39             <field name="name">hr settings for expenses</field>
40             <field name="model">hr.config.settings</field>
41             <field name="type">form</field>
42             <field name="inherit_id" ref="hr.view_human_resources_configuration"/>
43             <field name="arch" type="xml">
44                 <field name="module_hr_expense" position="after">
45                         <group colspan="2" col="2">
46                             <label string="Create Expenses Products :" />
47                             <button name="%(product_normal_form_view_installer)d" string="Expenses Products" type="action" icon="terp-accessories-archiver"/>
48                         </group>
49                 </field>
50             </field>
51         </record>          
52                 
53     </data>
54 </openerp>