[FIX] product: correctly set partner_ref

Oversight of previous forward-port
This commit is contained in:
Christophe Simonis
2018-06-12 16:53:44 +02:00
parent e3658d6f56
commit 4479aac52f
+1 -1
View File
@@ -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]