diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-04-24 12:53:34 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-04-24 12:53:34 +0200 |
| commit | 64b7d4e8a8df180bc598e2df56992d373e23b44b (patch) | |
| tree | e5683925601ffc151d185b374cd8b4a713d23def /addons/product/models/product_attribute.py | |
| parent | 7350a50a2eb41f8df595b4791edfe5ee3f06de63 (diff) | |
| parent | 3f6e573c67a2ef6cbaf9bbeda1d0a2f286809266 (diff) | |
[MERGE] forward port branch 10.0 up to 3f6e573c67a
Diffstat (limited to 'addons/product/models/product_attribute.py')
| -rw-r--r-- | addons/product/models/product_attribute.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/product/models/product_attribute.py b/addons/product/models/product_attribute.py index 9c9a8c09388..bdedd9d7f9d 100644 --- a/addons/product/models/product_attribute.py +++ b/addons/product/models/product_attribute.py @@ -76,7 +76,7 @@ class ProductAttributevalue(models.Model): @api.multi def _variant_name(self, variable_attributes): - return ", ".join([v.name for v in self if v.attribute_id in variable_attributes]) + return ", ".join([v.name for v in self.sorted(key=lambda r: r.name) if v.attribute_id in variable_attributes]) class ProductAttributePrice(models.Model): |
