summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-02-08 16:08:59 +0100
committerThibault Delavallée <tde@odoo.com>2018-02-12 13:07:41 +0100
commitb1b9896c46e98567bd68b489b365aebf5f98f2b5 (patch)
tree9c9e267efb82d1826c4807acbf9125d0dcc7a3fd /addons/web_editor/static/src/xml
parent94f2f6241b65c746baf13adaf5f60567877acc06 (diff)
[FIX] mail: replace local links in notification emails
Since notification emails are not mail templates anymore they do not go through the mail_template.render_post_process() method that converts local links to absolute links. This means that buttons and images were not correctly displayed in notification emails. Indeed those still had local links. This commit fixes that by moving the method directly in mail.thread and calling it accordingly when rendering the notification email. Note that the method has been changed in order to use regex instead of html parser. It is done based on work already done in mass mailing application. Indeed using parsers is complex and time consuming and may create changes in the html structure that are not intended. Next step in master is to go through various link modifications in mass mailing module to see how to handle them properly. Maybe.
Diffstat (limited to 'addons/web_editor/static/src/xml')
0 files changed, 0 insertions, 0 deletions