summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml
diff options
context:
space:
mode:
authorHiral Bhavsar <hbh@odoo.com>2020-06-02 12:10:19 +0000
committerHiral Bhavsar <hbh@odoo.com>2020-06-10 05:23:34 +0000
commitd46610ccb28ff0a6d890b0d8a2798d9e28370666 (patch)
tree19c70d545a5544b3823875b83d58e0c46a237cbc /addons/mail/static/src/xml
parentbae86361247efb1dd4ac7f454b859461d4e5eb9c (diff)
[IMP] mail: few improvements on activity widget
PURPOSE Display the activity type through the icon of the widget and change the place to display to whom the activity is assigned (if it is not assigned to the current user). SPECIFICATION Display the deadline with a prefix as responsible if the activity assigned to another user than the current one (uid). Add a new 'activity_type_icon' field to the mail mixin to get the 'icon' of the type (fa-phone, fa-users, etc...) and for the list_activity widget, display it as an icon instead of the default 'fa-clock-o' icon. LINKS PR https://github.com/odoo/odoo/pull/52252 Task-2267579 closes odoo/odoo#52252 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/xml')
-rw-r--r--addons/mail/static/src/xml/web_kanban_activity.xml5
1 files changed, 1 insertions, 4 deletions
diff --git a/addons/mail/static/src/xml/web_kanban_activity.xml b/addons/mail/static/src/xml/web_kanban_activity.xml
index 58b8c4bd6d4..5b3491ea50c 100644
--- a/addons/mail/static/src/xml/web_kanban_activity.xml
+++ b/addons/mail/static/src/xml/web_kanban_activity.xml
@@ -68,6 +68,7 @@
</div>
<div class="o_activity_title_entry mt-1" t-if="log.state != 'today'">
<span class="fa fa-clock-o fa-fw mr-2 text-center text-muted" role="img" aria-label="Deadline" title="Deadline"/>
+ <small t-if="log.user_id[0] !== session.uid and log.mail_template_ids" class="mr-1"><t t-esc="log.user_id[1]"/> -</small>
<small t-att-title="log.date_deadline"><t t-esc="log.label_delay" /></small>
</div>
<t t-if="log.mail_template_ids">
@@ -81,10 +82,6 @@
</small>
</div>
</t>
- <div t-if="log.user_id[0] != session.uid and log.mail_template_ids" class="o_activity_title_entry">
- <span class="fa fa-user fa-fw mr-2 text-center text-muted" role="img" aria-label="User" title="User"/>
- <span><t t-esc="log.user_id[1]" /></span>
- </div>
</div>
<div t-if="log.can_write" class="flex-grow-1 text-right">
<t t-if="log.activity_category === 'upload_file'">