Permalink
Browse files

[FIX] product: Fixed the product description in invoice line.

Product description is a 'defualt_code' and square brackets inside 'default_code' when customer and product
vendor is same in vendor bill.

Task: 1892754
  • Loading branch information...
ppr-odoo committed Dec 6, 2018
1 parent fd2efbb commit de717ea8a112ce67fcfa62d0e0be127f1096ee4f
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/product/models/product.py
@@ -229,7 +229,7 @@ def _compute_product_code(self):
def _compute_partner_ref(self):
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 or self.name
product_name = supplier_info.product_name or self.name or self.default_code
self.partner_ref = '%s%s\n%s' % (self.code and '[%s] ' % self.code or '', product_name, self.description_sale or '')
break
else:

0 comments on commit de717ea

Please sign in to comment.