From 4613455d45372f4037e98b5399fccbcd15ecc29d Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Mon, 8 May 2017 18:50:19 +0200 Subject: [PATCH] Revert "[FIX] stock : traceback pivot view for stock moves" This reverts commit 834b38a84d658f6f0dc42d32e6cd983301a70b71. It also reverts 003328ec82c95f5848960f113a4c897ebe47429c that improved the sorted. --- 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 20465d47c49..9c9a8c09388 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.sorted(key=lambda r: r.attribute_id.name) if v.attribute_id in variable_attributes]) + return ", ".join([v.name for v in self if v.attribute_id in variable_attributes]) class ProductAttributePrice(models.Model):