From fa0bdec3ea43a2ee66d0001ef0608850e210c5ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 2 Nov 2015 10:58:38 +0100 Subject: [PATCH] [TMP] mail: temporarily deactivate keep_url This makes every template holding images crash. As this feature will shortly be fixed in 9, let us temporarily comment its use and wait for the forward port of the fix. --- addons/mail/models/mail_thread.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py index 230d8d0326b..12345a32c27 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -1620,8 +1620,10 @@ class MailThread(models.AbstractModel): # 1: Handle content subtype: if plaintext, converto into HTML if content_subtype == 'plaintext': body = tools.plaintext2html(body) - else: - body = tools.html_keep_url(body) + # TMP: do not rewrite URLs in html because it creates errors. A fix is + # pending in 9, so this code is temporarily deactivated. + # else: + # body = tools.html_keep_url(body) # 2: Private message: add recipients (recipients and author of parent message) - current author # + legacy-code management (! we manage only 4 and 6 commands)