diff --git a/odoo/tools/mail.py b/odoo/tools/mail.py index c98a575f10a..026976e112b 100644 --- a/odoo/tools/mail.py +++ b/odoo/tools/mail.py @@ -304,7 +304,7 @@ def html2plaintext(html, body_id=None, encoding='utf-8'): html = ustr(html) - if not html: + if not html.strip(): return '' tree = etree.fromstring(html, parser=etree.HTMLParser())