summaryrefslogtreecommitdiff
path: root/addons/website_sale_comparison/data
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/website_sale_comparison/data
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/website_sale_comparison/data')
-rw-r--r--addons/website_sale_comparison/data/website_sale_comparison_data.xml7
-rw-r--r--addons/website_sale_comparison/data/website_sale_comparison_demo.xml68
2 files changed, 75 insertions, 0 deletions
diff --git a/addons/website_sale_comparison/data/website_sale_comparison_data.xml b/addons/website_sale_comparison/data/website_sale_comparison_data.xml
new file mode 100644
index 00000000..42b029e6
--- /dev/null
+++ b/addons/website_sale_comparison/data/website_sale_comparison_data.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record id="product_attribute_category_general_features" model="product.attribute.category">
+ <field name="name">General Features</field>
+ <field name="sequence">1</field>
+ </record>
+</odoo> \ No newline at end of file
diff --git a/addons/website_sale_comparison/data/website_sale_comparison_demo.xml b/addons/website_sale_comparison/data/website_sale_comparison_demo.xml
new file mode 100644
index 00000000..1008bbc1
--- /dev/null
+++ b/addons/website_sale_comparison/data/website_sale_comparison_demo.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <record id="product_attribute_category_duration" model="product.attribute.category">
+ <field name="name">Duration</field>
+ <field name="sequence">20</field>
+ </record>
+ <record id="product.product_attribute_3" model="product.attribute">
+ <field name="category_id" ref="product_attribute_category_duration"/>
+ </record>
+
+
+ <record id="product_attribute_category_2" model="product.attribute.category">
+ <field name="name">Dimensions</field>
+ <field name="sequence">7</field>
+ </record>
+
+ <record id="product.product_attribute_1" model="product.attribute">
+ <field name="category_id" ref="product_attribute_category_general_features"/>
+ </record>
+ <record id="product.product_attribute_2" model="product.attribute">
+ <field name="category_id" ref="product_attribute_category_general_features"/>
+ </record>
+
+ <record id="product_attribute_1" model="product.attribute">
+ <field name="name">Brand</field>
+ <field name="category_id" ref="product_attribute_category_general_features"/>
+ </record>
+ <record id="product_attribute_value_1" model="product.attribute.value">
+ <field name="name">Apple</field>
+ <field name="attribute_id" ref="product_attribute_1"/>
+ </record>
+
+ <record id="product_attribute_7" model="product.attribute">
+ <field name="name">Weight</field>
+ <field name="category_id" ref="product_attribute_category_2"/>
+ </record>
+ <record id="product_attribute_value_7" model="product.attribute.value">
+ <field name="name">308 g</field>
+ <field name="attribute_id" ref="product_attribute_7"/>
+ </record>
+
+ <record id="product_attribute_8" model="product.attribute">
+ <field name="name">Dimensions</field>
+ <field name="category_id" ref="product_attribute_category_2"/>
+ </record>
+ <record id="product_attribute_value_8" model="product.attribute.value">
+ <field name="name">134.7 x 200 x 7.2 mm</field>
+ <field name="attribute_id" ref="product_attribute_8"/>
+ </record>
+
+ <record id="product_6_attribute_1_product_template_attribute_line" model="product.template.attribute.line">
+ <field name="product_tmpl_id" ref="product.product_product_6_product_template"/>
+ <field name="attribute_id" ref="product_attribute_1"/>
+ <field name="value_ids" eval="[(6,0,[ref('product_attribute_value_1')])]"/>
+ </record>
+ <record id="product_6_attribute_7_product_template_attribute_line" model="product.template.attribute.line">
+ <field name="product_tmpl_id" ref="product.product_product_6_product_template"/>
+ <field name="attribute_id" ref="product_attribute_7"/>
+ <field name="value_ids" eval="[(6,0,[ref('product_attribute_value_7')])]"/>
+ </record>
+ <record id="product_6_attribute_8_template_attribute_line" model="product.template.attribute.line">
+ <field name="product_tmpl_id" ref="product.product_product_6_product_template"/>
+ <field name="attribute_id" ref="product_attribute_8"/>
+ <field name="value_ids" eval="[(6,0,[ref('product_attribute_value_8')])]"/>
+ </record>
+
+</odoo>