From 897a4baecf62256ca5e4f08f048e90ab0c090776 Mon Sep 17 00:00:00 2001 From: "Antoine Vandevenne (anv)" Date: Fri, 27 Sep 2019 16:33:05 +0000 Subject: [PATCH] [IMP] product(_matrix): clean demo product for matrix Before this commit, the product 'My Company Tshirt' had too much PTAL and PTAV which lead to an overloaded matrix. This commit removes the 'Sleeves' attribute, reorder the other attributes and remove the Size attributes '2XL' and '3XL'. task-2052537 closes odoo/odoo#37543 Signed-off-by: Damien Bouvy (dbo) --- addons/product/data/product_demo.xml | 5 +- .../data/product_matrix_demo.xml | 70 ++++++------------- 2 files changed, 25 insertions(+), 50 deletions(-) diff --git a/addons/product/data/product_demo.xml b/addons/product/data/product_demo.xml index db05606e7ab..d3f2ede9e2f 100644 --- a/addons/product/data/product_demo.xml +++ b/addons/product/data/product_demo.xml @@ -132,7 +132,7 @@ Legs - 1 + 10 Steel @@ -147,7 +147,7 @@ Color - 2 + 20 White @@ -162,6 +162,7 @@ Duration + 30 1 year diff --git a/addons/product_matrix/data/product_matrix_demo.xml b/addons/product_matrix/data/product_matrix_demo.xml index 981a2437c0e..479458bb981 100644 --- a/addons/product_matrix/data/product_matrix_demo.xml +++ b/addons/product_matrix/data/product_matrix_demo.xml @@ -1,7 +1,10 @@ + + Size + 19 XS @@ -28,46 +31,8 @@ 5 - - 2XL - - 6 - - - 3XL - - 7 - - - - Gender - - - Men - - 1 - - - Women - - 2 - - - - Sleeves - - - Short Sleeves - - 1 - - - Long Sleeves - - 2 - - - + + Blue @@ -88,6 +53,22 @@ 6 + + + + Gender + 21 + + + Men + + 1 + + + Women + + 2 + My Company Tshirt (GRID) @@ -110,20 +91,13 @@ ref('product_attribute_value_size_s'), ref('product_attribute_value_size_m'), ref('product_attribute_value_size_l'), - ref('product_attribute_value_size_xl'), - ref('product_attribute_value_size_xxl'), - ref('product_attribute_value_size_xxxl')])]"/> + ref('product_attribute_value_size_xl')])]"/> - - - - -