[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user