diff --git a/addons/product/models/product.py b/addons/product/models/product.py index 9b28912fecca81acb6cb0da82696b4c5ac1b2679..78b4ddc316981f8319a17e4a2bda1fbd48784116 100644 --- a/addons/product/models/product.py +++ b/addons/product/models/product.py @@ -231,8 +231,8 @@ class ProductProduct(models.Model): for supplier_info in self.seller_ids: if supplier_info.name.id == self._context.get('partner_id'): product_name = supplier_info.product_name or self.default_code - break self.partner_ref = '%s%s' % (self.code and '[%s] ' % self.code or '', product_name) + break else: self.partner_ref = self.name_get()[0][1]