Merge PR #597 into 13.0

Signed-off-by simahawk
pull/596/head
OCA-git-bot 2020-08-27 15:06:34 +00:00
commit 063700e62d
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ class MailTemplate(models.Model):
return result
def _premailer_apply_transform(self, data_html):
if not data_html:
return data_html
premailer = Premailer(html=data_html, **self._get_premailer_options())
return premailer.transform()