From 05bfb75a509d814b46de5b570441e1d4dae2e5c0 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Tue, 18 Oct 2016 10:04:24 +0200 Subject: [PATCH] Explain patch rationale. --- email_template_qweb/models/mail_template.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/email_template_qweb/models/mail_template.py b/email_template_qweb/models/mail_template.py index b05621ba..95aaaf58 100644 --- a/email_template_qweb/models/mail_template.py +++ b/email_template_qweb/models/mail_template.py @@ -33,6 +33,8 @@ class MailTemplate(models.Model): 'email_template': this, }) ) + # Some wizards, like when sending a sales order, need this + # fix to display accents correctly if isinstance(result[record_id]['body_html'], unicode): result[record_id]['body_html'] = ( result[record_id]['body_html'].decode('utf-8')