[FIX] project,hr: improved alias creation/duplication
[odoo/odoo.git] / addons / hr_expense / hr_expense_installer_view.xml
1 <openerp>
2   <data>
3       <record id="hr.todo_open_hr_menu" model="ir.actions.todo">
4           <field name="state">done</field>
5       </record>
6   </data>
7   <data noupdate="1">
8       <!-- After installation of the module, open the related menu -->
9       <record id="todo_open_hr_menu" model="ir.actions.todo">
10           <field name="action_id" ref="hr.action_client_hr_menu"/>
11           <field name="type">automatic</field>
12           <field name="sequence">100</field>
13       </record>
14   </data>
15   <data>
16         <record id="product_expense_installer_tree_view" model="ir.ui.view">
17             <field name="name">product.product.tree</field>
18             <field name="model">product.product</field>
19             <field name="type">tree</field>
20             <field eval="7" name="priority"/>
21             <field name="arch" type="xml">
22                 <tree editable="bottom" string="Products">
23                     <field name="name"/>
24                     <field name="standard_price"/>
25                     <field name="list_price"/>
26                     <field name="uom_id" string="Unit of Measure"/>
27                 </tree>
28             </field>
29         </record> 
30  
31         <record model="ir.actions.act_window" id="product_normal_form_view_installer">
32            <field name="name">Review Your Expenses Products</field>
33            <field name="type">ir.actions.act_window</field>
34            <field name="res_model">product.product</field>
35            <field name="view_type">form</field>
36            <field name="view_mode">tree,form</field>
37            <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')) +'}'"/>
38            <field name="domain">[('hr_expense_ok','=',True)]</field>
39            <field name="view_id" ref="product_expense_installer_tree_view"/>
40            <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>
41        </record>
42
43     </data>
44 </openerp>