From 2f1a0cf6c866cecc3c1b568f05952f1ac2de5017 Mon Sep 17 00:00:00 2001 From: len-odoo Date: Tue, 18 Sep 2018 12:29:51 +0200 Subject: [PATCH] [FIX] product: compute product variant names using attribute sequences Commit: 70e1efd41e6433ab2e010fdd923ff0d3683504c0 Explicitly added an _order on product.attribute.value. However the order that should be used first is the one from product.attribute. It would not make sense to display ipod (white, 8go) and ipod (8go, black). opw 1883904 --- addons/product/models/product_attribute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/models/product_attribute.py b/addons/product/models/product_attribute.py index f74c228602a..76ba430ba25 100644 --- a/addons/product/models/product_attribute.py +++ b/addons/product/models/product_attribute.py @@ -21,7 +21,7 @@ class ProductAttribute(models.Model): class ProductAttributevalue(models.Model): _name = "product.attribute.value" - _order = 'sequence, attribute_id, id' + _order = 'attribute_id, sequence, id' name = fields.Char('Attribute Value', required=True, translate=True) sequence = fields.Integer('Sequence', help="Determine the display order")