[FIX] product: compute product variant names using attribute sequences

Commit: 70e1efd41e
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
This commit is contained in:
len-odoo
2018-09-19 16:30:54 +02:00
committed by len-odoo
parent 426b9a3551
commit 2f1a0cf6c8
+1 -1
View File
@@ -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")