[DEMO] ~Common root for all products categories
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Sun, 22 Dec 2013 15:07:20 +0000 (16:07 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Sun, 22 Dec 2013 15:07:20 +0000 (16:07 +0100)
demo/product.xml

index 9e60cd0..15d6aff 100644 (file)
@@ -13,6 +13,7 @@
 
         <record id="product_category_equipment" model="product.category">
             <field name="name">Equipment</field>
+            <field name="parent_id" ref="product.product_category_all"/>
         </record>
         <record id="product_category_new_equipment" model="product.category">
             <field name="name">New equipment</field>
@@ -24,6 +25,7 @@
         </record>
         <record id="product_category_anim" model="product.category">
             <field name="name">Animation</field>
+            <field name="parent_id" ref="product.product_category_all"/>
         </record>
         <record id="product_category_anim_bikeschool" model="product.category">
             <field name="name">Bike school animation</field>
@@ -35,6 +37,7 @@
         </record>
         <record id="product_category_training" model="product.category">
             <field name="name">Training</field>
+            <field name="parent_id" ref="product.product_category_all"/>
         </record>
         <record id="product_category_training_internal" model="product.category">
             <field name="name">Internals trainings</field>