summaryrefslogtreecommitdiff
path: root/addons/product/data
diff options
context:
space:
mode:
authorMehul Patel <mep@odoo.com>2017-11-09 19:04:21 +0530
committerjem-odoo <jem@openerp.com>2018-02-20 09:34:56 +0100
commit257bf539d55f1a6322a060bb143dbbd0f8b124c1 (patch)
tree8894653758b0004188f2a9b9f10789f6ac20a775 /addons/product/data
parent0273e41656da78c287a1cea2b1db29d1391a3ce7 (diff)
[IMP] sale_timesheet: add demo data
This commit adds demo data to populate the project overview with billable timesheet on sold projects and tasks. This will ease the testing and reinforce the wow effect during demonstration. Note: those demo data should never be involved in python test cases. Closes #21132
Diffstat (limited to 'addons/product/data')
-rw-r--r--addons/product/data/product_data.xml12
-rw-r--r--addons/product/data/product_demo.xml29
2 files changed, 33 insertions, 8 deletions
diff --git a/addons/product/data/product_data.xml b/addons/product/data/product_data.xml
index 858b3944bfa..59f5cfb406f 100644
--- a/addons/product/data/product_data.xml
+++ b/addons/product/data/product_data.xml
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
- <!--
- Resource: product.uom.categ
- -->
<record id="product_category_all" model="product.category">
<field name="name">All</field>
</record>
@@ -11,7 +8,14 @@
<field name="parent_id" ref="product_category_all"/>
<field name="name">Saleable</field>
</record>
-
+ <record id="cat_expense" model="product.category">
+ <field name="parent_id" ref="product_category_all"/>
+ <field name="name">Expenses</field>
+ </record>
+
+ <!--
+ Resource: product.uom.categ
+ -->
<record id="product_uom_categ_unit" model="product.uom.categ">
<field name="name">Unit</field>
</record>
diff --git a/addons/product/data/product_demo.xml b/addons/product/data/product_demo.xml
index 2a8e9305b19..f21644a9ded 100644
--- a/addons/product/data/product_demo.xml
+++ b/addons/product/data/product_demo.xml
@@ -19,6 +19,28 @@
<field name="name">Physical</field>
</record>
+ <!-- Expensable products -->
+ <record id="expense_product" model="product.product">
+ <field name="name">General Expense</field>
+ <field name="list_price">14.0</field>
+ <field name="standard_price">8.0</field>
+ <field name="type">service</field>
+ <field name="default_code">EXP</field>
+ <field name="categ_id" ref="product.cat_expense"/>
+ </record>
+
+ <record id="expense_hotel" model="product.product">
+ <field name="name">Hotel Accommodation</field>
+ <field name="list_price">400.0</field>
+ <field name="standard_price">400.0</field>
+ <field name="type">service</field>
+ <field name="default_code">EXP</field>
+ <field name="uom_id" ref="product_uom_day"/>
+ <field name="uom_po_id" ref="product_uom_day"/>
+ <field name="categ_id" ref="cat_expense"/>
+ </record>
+
+ <!-- Service products -->
<record id="service_order_01" model="product.product">
<field name="name">Prepaid Consulting</field>
<field name="categ_id" ref="product_category_3"/>
@@ -109,7 +131,6 @@
<field name="description">Example of product to invoice based on delivery.</field>
</record>
-
<record id="product_product_3" model="product.product">
<field name="name">Computer SC234</field>
<field name="categ_id" ref="product_category_5"/>
@@ -203,11 +224,11 @@
<record id="product_product_4_product_template" model="product.template">
<field name="attribute_line_ids" eval="[(6,0,[ref('product.product_attribute_line_1'), ref('product.product_attribute_line_2'), ref('product.product_attribute_line_3')])]"/>
</record>
-
+
<record id="product_product_4d" model="product.product">
<field name="active" eval="False"/>
</record>
-
+
<record id="product_attribute_price_1" model="product.attribute.price">
<field name="product_tmpl_id" ref="product_product_4_product_template"/>
<field name="value_id" ref="product_attribute_value_2"/>
@@ -343,7 +364,7 @@
<record id="product_product_11_product_template" model="product.template">
<field name="attribute_line_ids" eval="[(6,0,[ref('product.product_attribute_line_4')])]"/>
</record>
-
+
<record id="product_attribute_price_2" model="product.attribute.price">
<field name="product_tmpl_id" ref="product_product_11_product_template"/>
<field name="value_id" ref="product_attribute_value_2"/>