[FIX] ir.mail_server: fix bug introduced in 200612ca1e

The variable `email_body_utf8` has been renamed to `email_body` during
PythonThreeTization but there is a leftover:

https://github.com/odoo/odoo/commit/200612ca1ef1#diff-85eeeed32c7f2fe285884f3661b49881R326
This commit is contained in:
Fabien Meghazi
2017-09-25 23:22:45 +02:00
parent b90006e9cc
commit 63a4370afd
+1 -1
View File
@@ -323,7 +323,7 @@ class IrMailServer(models.Model):
if subtype == 'html' and not body_alternative:
# Always provide alternative text body ourselves if possible.
text = html2text.html2text(email_body_utf8)
text = html2text.html2text(email_body)
alternative_part = MIMEMultipart(_subtype="alternative")
alternative_part.attach(MIMEText(text, _charset='utf-8', _subtype='plain'))
alternative_part.attach(email_text_part)