[IMP]project_timesheet:added method for setting default type of invoicing
[odoo/odoo.git] / addons / hr_expense / hr_expense_data.xml
index 9660dbb..2a9f3ae 100644 (file)
@@ -1,25 +1,21 @@
 <?xml version="1.0" encoding="utf-8"?>
 <openerp>
     <data noupdate="1">
-        <!--
-    Resource: product.uom.categ
-    -->
-       <record id="cat_expense" model="product.category">
-            <field name="parent_id" ref="product.cat0"/>
-            <field name="name">Expenses</field>
-        </record>
-        
-        <record id="product_product_expense_car" model="product.product">
-            <field name="list_price">0.32</field>
-            <field name="standard_price">0.32</field>
-            <field name="uom_id" ref="product.product_uom_km"/>
-            <field name="uom_po_id" ref="product.product_uom_km"/>
-            <field name="type">consu</field>
-            <field name="name">Travel Expenses</field>
-            <field name="default_code">TRA</field>
-            <field name="categ_id" ref="hr_expense.cat_expense"/>
-            <field name="hr_expense_ok" eval="True" />
+        <!-- notify all employees of module installation -->
+        <record model="mail.message" id="module_install_notification">
+            <field name="model">mail.group</field>
+            <field name="res_id" ref="mail.group_all_employees"/>
+            <field name="type">notification</field>
+            <field name="subject">Expense Management application installed!</field>
+            <field name="body">Manage your employees' expenses, after due validation by their manager and the accountant, then generate and pay the corresponding invoices.
+
+This feature is also linked to analytic accounting and compatible with timesheet invoices, so you will be able to automatically re-invoice project-related expenses to your customers.</field>
         </record>
 
+        <!-- Resource: product.uom.categ -->
+        <record id="cat_expense" model="product.category">
+            <field name="parent_id" ref="product.product_category_all"/>
+            <field name="name">Expenses</field>
+        </record>
     </data>
-</openerp>
\ No newline at end of file
+</openerp>