summaryrefslogtreecommitdiff
path: root/addons/mail/data/mail_data.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-06-15 12:11:52 +0200
committerThibault Delavallée <tde@odoo.com>2018-07-27 17:22:03 +0200
commitaf3bd8193a55756528716f114ebf284cb55dcb6c (patch)
tree043244711c50485a53c3c202581d5a0f12d5a295 /addons/mail/data/mail_data.xml
parent5d795d16f98714cc8ca08ec9542d95d30e5d6684 (diff)
[MOV] mail: move template used for notification to data
As those are technical views used as data when sending some notifications they should not be in the templates.
Diffstat (limited to 'addons/mail/data/mail_data.xml')
-rw-r--r--addons/mail/data/mail_data.xml41
1 files changed, 41 insertions, 0 deletions
diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml
index 4c3848f1199..78c74494941 100644
--- a/addons/mail/data/mail_data.xml
+++ b/addons/mail/data/mail_data.xml
@@ -320,6 +320,47 @@
</table>
</template>
+ <!-- Discuss utility templates for notifications -->
+ <template id="message_user_assigned">
+<p style="margin: 0px;">
+ <span>Dear <t t-esc="object.user_id.name"/>,</span><br />
+ <span style="margin-top: 8px;">You have been assigned to the <t t-esc="object._description.lower()"/> <t t-esc="object.name_get()[0][1]"/>.</span>
+</p>
+<p style="margin-top: 24px; margin-bottom: 16px;">
+ <a t-att-href="'/mail/view?model=%s&amp;res_id=%s' % (object._name, object.id)" style="background-color:#875A7B; padding: 10px; text-decoration: none; color: #fff; border-radius: 5px;">
+ View <t t-esc="object._description.lower()"/>
+ </a>
+</p>
+ </template>
+
+ <template id="message_activity_done">
+<div>
+ <p>
+ <strong><span t-attf-class="fa #{activity.activity_type_id.icon}"/></strong> <span t-field="activity.activity_type_id.name"/> done
+ by <span t-field="activity.user_id.name"/><span t-if="activity.summary">:</span>
+ <span t-if="activity.summary" t-field="activity.summary"/>
+ </p>
+ <div t-field="activity.note" style="margin-left: 8px;"/>
+ <div t-if="activity.feedback" style="margin-top: 8px;">
+ <strong> Feedback</strong>
+ <div t-field="activity.feedback" style="margin-left: 8px;"></div>
+ </div>
+</div>
+ </template>
+
+ <!-- Mail gateway templates -->
+ <template id="mail_bounce_catchall">
+<div>
+ <p>Hello <t t-esc="message['email_from']"/>,</p>
+ <p>The email sent to <t t-esc="message['to']"/> cannot be processed. This address
+ is used to collect replies and should not be used to directly contact <t t-esc="res_company.name"/>.</p>
+ <p>Please contact us instead using <a t-att-href="'mailto:%s' % res_company.email"><t t-esc="res_company.email"/></a></p>
+ <p>Regards,</p>
+ <p>The <t t-esc="res_company.name"/> team.</p>
+</div>
+<blockquote><t t-esc="message['body']"/></blockquote>
+ </template>
+
<!-- Channel and moderation related data -->
<template id="mail_channel_notify_moderation">
<div>