diff --git a/addons/product/models/product.py b/addons/product/models/product.py index 6dfd75e3b2d..5c8474a09e3 100644 --- a/addons/product/models/product.py +++ b/addons/product/models/product.py @@ -636,10 +636,9 @@ class ProductProduct(models.Model): continue if seller.product_id and seller.product_id != self: continue - - res |= seller - break - return res + if not res or res.name == seller.name: + res |= seller + return res.sorted('price')[:1] def price_compute(self, price_type, uom=False, currency=False, company=False): # TDE FIXME: delegate to template or not ? fields are reencoded here ...