From 25153b50efd5fe7c005482018a0c460acb6f0599 Mon Sep 17 00:00:00 2001 From: Jinal Patel Date: Mon, 4 Feb 2019 12:32:22 +0000 Subject: [PATCH] [IMP] sale: apply correct header to quotation email template This commit applies the correct quotation header to the quotation email. The header now states "Your Quotation" if the stage is quotation instead of "Your Sale Order". Related Task ID : 1936003 closes odoo/odoo#30849 Signed-off-by: Thibault Delavallee (tde) --- addons/sale/models/sale.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/sale/models/sale.py b/addons/sale/models/sale.py index 773f3e4d87d..172479e1485 100644 --- a/addons/sale/models/sale.py +++ b/addons/sale/models/sale.py @@ -617,7 +617,8 @@ class SaleOrder(models.Model): 'mark_so_as_sent': True, 'custom_layout': "mail.mail_notification_paynow", 'proforma': self.env.context.get('proforma', False), - 'force_email': True + 'force_email': True, + 'model_description': self.type_name } return { 'type': 'ir.actions.act_window',