summaryrefslogtreecommitdiff
path: root/addons/test_website_slides_full/data
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2019-08-27 08:44:41 +0000
committerThibault Delavallée <tde@odoo.com>2019-08-28 13:27:59 +0000
commitfe0f5a8b0411ce0c0a82de9d6d63f140302a9351 (patch)
treea7ee1a57716b1c54a7ad5c1f75aa7bab5f637ed6 /addons/test_website_slides_full/data
parent4bd598e0c1ba583314a6ec01f230cd8189793301 (diff)
[FIX] website_sale_slides: fix demo data about optional products
PURPOSE Test frontend and UI tools of eLearning. SPECIFICATIONS This commit move commented demo data due to dependency issues (see 9920f20e4c7753bc17bea71dea3a90f7de687196). Optional products are now installed with the "full elearning setup" module introduced recently. LINKS Task ID 1937768
Diffstat (limited to 'addons/test_website_slides_full/data')
-rw-r--r--addons/test_website_slides_full/data/product_demo.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/addons/test_website_slides_full/data/product_demo.xml b/addons/test_website_slides_full/data/product_demo.xml
new file mode 100644
index 00000000000..8673b4f9048
--- /dev/null
+++ b/addons/test_website_slides_full/data/product_demo.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo><data noupdate="1">
+ <record id="product_course_channel_1_option_0" model="product.product">
+ <field name="name">Water can</field>
+ <field name="standard_price">12.0</field>
+ <field name="list_price">12.0</field>
+ <field name="type">consu</field>
+ <field name="is_published" eval="True"/>
+ <field name="image_1920" type="base64" file="website_sale_slides/static/img/water_can.jpg"/>
+ </record>
+
+ <record id="product_course_channel_1_option_1" model="product.product">
+ <field name="name">Flower pot</field>
+ <field name="standard_price">4.5</field>
+ <field name="list_price">4.5</field>
+ <field name="type">consu</field>
+ <field name="is_published" eval="True"/>
+ <field name="image_1920" type="base64" file="website_sale_slides/static/img/flower_pot.jpg"/>
+ </record>
+
+ <record id="website_sale_slides.product_course_channel_1_product_template" model="product.template">
+ <field name="optional_product_ids" eval="[
+ (6, 0, [ref('test_website_slides_full.product_course_channel_1_option_0_product_template'),
+ ref('test_website_slides_full.product_course_channel_1_option_1_product_template')]
+ )]"/>
+ </record>
+</data></odoo>