[FIX] product: correctly set partner_ref
Oversight of previous forward-port
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user