[FIX] website_quote: Description on a sale.quote.line

To have the same behavior when the variant is added manually on the SO
or when it's added with a sale.quote.template. The description on the
SO line must include the default_code and the name of the variant.

opw:725072
This commit is contained in:
Goffin Simon
2017-03-23 18:54:41 +01:00
parent 9e23458d40
commit 2b013d193b
+1 -1
View File
@@ -58,7 +58,7 @@ class SaleQuoteLine(models.Model):
def _onchange_product_id(self):
self.ensure_one()
if self.product_id:
name = self.product_id.name
name = self.product_id.name_get()[0][1]
if self.product_id.description_sale:
name += '\n' + self.product_id.description_sale
self.name = name