summaryrefslogtreecommitdiff
path: root/addons/mail/data/mail_data.xml
diff options
context:
space:
mode:
authorRémy Voet (ryv) <ryv@odoo.com>2019-12-18 12:01:37 +0000
committerThibault Delavallée <tde@odoo.com>2020-03-12 13:54:32 +0000
commitc5e6511e8d35a206e966658325ac8dce6a097a48 (patch)
tree821939459ad332fbab22766517e6b98e949d1e9f /addons/mail/data/mail_data.xml
parent974f512f5f5d3b9f80a8c3fcde290e4f55cf1230 (diff)
[IMP] mail: ease bounce email content update based on alias security
PURPOSE When incoming emails bounce due to alias security bounce email is quite generic. Purpose of this task is to ease its customization and update. SPECIFICATIONS In order to improve the flexibility of alias, add a customizable html field on the alias model. This html content will be send as bounce email core content in case of bounced/unauthorized mail received for this alias, Obviously it has no effect on 'everyone' security setting as no email will bounce due to that issue. If it is not set a default generic mail will be send depending on security setting. It allows to keep void html fields when no specific bounce content is required In HR, an old template allowing some light customization for employee based security option is removed as it is completely replaced by the new feature. Also add references message-id of the mail received to the answer so that threads are correctly set. LINKS Task ID 2126509
Diffstat (limited to 'addons/mail/data/mail_data.xml')
-rw-r--r--addons/mail/data/mail_data.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml
index a83cafbbc8d..3e0c6ca6b37 100644
--- a/addons/mail/data/mail_data.xml
+++ b/addons/mail/data/mail_data.xml
@@ -363,6 +363,12 @@
<blockquote><t t-esc="message['body']"/></blockquote>
</template>
+ <!-- Mail bounce alias mail template -->
+ <template id="mail_bounce_alias_security">
+<div><t t-raw="body"/></div>
+<blockquote><t t-raw="message['body']"/></blockquote>
+ </template>
+
<!-- Channel and moderation related data -->
<template id="mail_channel_notify_moderation">
<div>