3 <!-- After installation of the module, open the related menu -->
4 <record id="base.open_menu" model="ir.actions.todo">
5 <field name="action_id" ref="hr.action_client_hr_menu"/>
6 <field name="state">open</field>
10 <record id="product_expense_installer_tree_view" model="ir.ui.view">
11 <field name="name">product.product.tree</field>
12 <field name="model">product.product</field>
13 <field eval="37" name="priority"/>
14 <field name="arch" type="xml">
15 <tree editable="bottom" string="Products">
17 <field name="standard_price"/>
18 <field name="list_price"/>
19 <field name="uom_id" string="Unit of Measure"/>
24 <record model="ir.actions.act_window" id="product_normal_form_view_installer">
25 <field name="name">Review Your Expenses Products</field>
26 <field name="type">ir.actions.act_window</field>
27 <field name="res_model">product.product</field>
28 <field name="view_type">form</field>
29 <field name="view_mode">tree,form</field>
30 <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')) +'}'"/>
31 <field name="domain">[('hr_expense_ok','=',True)]</field>
32 <field name="view_id" ref="product_expense_installer_tree_view"/>
33 <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>