diff --git a/addons/website_quote/models/sale_order.py b/addons/website_quote/models/sale_order.py index 54a5ac77287..d165cd67889 100644 --- a/addons/website_quote/models/sale_order.py +++ b/addons/website_quote/models/sale_order.py @@ -77,6 +77,14 @@ class SaleOrder(models.Model): total += line.price_subtotal + line.price_unit * ((line.discount or 0.0) / 100.0) * line.product_uom_qty # why is there a discount in a field named amount_undiscounted ?? self.amount_undiscounted = total + @api.onchange('partner_id') + def onchange_update_description_lang(self): + if not self.template_id: + return + else: + template = self.template_id.with_context(lang=self.partner_id.lang) + self.website_description = template.website_description + @api.onchange('template_id') def onchange_template_id(self): if not self.template_id: