summaryrefslogtreecommitdiff
path: root/addons/mail/data/mail_data.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-06-15 13:03:21 +0200
committerThibault Delavallée <tde@odoo.com>2018-07-27 17:22:31 +0200
commit792efc861503d6060a3d1edba0ff9a9c75999c4f (patch)
tree957cc0d5683eff39680f71c84a444095af995f14 /addons/mail/data/mail_data.xml
parent4b348c6ed971aa99878cde6e4ecb8cab5346161e (diff)
[IMP] mail: notify people when another user assigns them on an activity
When someone assigns an activity to another user it is a good idea to notify this user a new activity has been assigned to him. This is done using the message_notify method that sends a notification either in the Inbox either by email depending on the user preferences. This commits is linked to task ID 1854820. Closes PR #25265.
Diffstat (limited to 'addons/mail/data/mail_data.xml')
-rw-r--r--addons/mail/data/mail_data.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml
index 78c74494941..83b78c2989a 100644
--- a/addons/mail/data/mail_data.xml
+++ b/addons/mail/data/mail_data.xml
@@ -348,6 +348,22 @@
</div>
</template>
+ <template id="message_activity_assigned">
+<div style="margin: 0px; padding: 0px; font-size: 13px;">
+ <span t-field="activity.create_user_id.name"/> assigned you an activity <span t-field="activity.activity_type_id.name"/>
+ <t t-if="activity.summary">(<span t-field="activity.summary"/>)</t>
+ on <span t-field="activity.res_name"/>
+ to close for <span t-field="activity.date_deadline"/>.<br />
+ <p style="margin: 16px 0px 16px 0px;">
+ <a t-att-href="'/mail/view?model=%s&amp;res_id=%s' % (activity.res_model, activity.res_id)"
+ style="background-color:#875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;">
+ View <t t-esc="model_description or 'document'"/>
+ </a>
+ </p>
+ <div t-if="activity.note" style="margin-top: 8px;" t-field="activity.note"/>
+</div>
+ </template>
+
<!-- Mail gateway templates -->
<template id="mail_bounce_catchall">
<div>