[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.
This commit is contained in:
Thibault Delavallée
2015-11-02 11:49:40 +01:00
parent 9bfb738b04
commit fa0bdec3ea
+4 -2
View File
@@ -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)