summaryrefslogtreecommitdiff
path: root/addons/project_issue/project_issue_view.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-06-10 14:24:32 +0200
committerThibault Delavallée <tde@openerp.com>2015-07-09 11:13:02 +0200
commit4a818d84a5e4b1514d8ad1d0e34ffdc754934b40 (patch)
treef6843b026a291181319487ad4ef44b6a8a7cc3ac /addons/project_issue/project_issue_view.xml
parent2470cde0e70812ebe2f1411541e105cea65fc770 (diff)
[REF] mail: mail.thread fields cleaning :
- removed message_summary, a field that computes html containing the number of unread messages. This field was used only in kanban views. Probably that in earlier versions of the kanban view this field had a use; however now we can directly use a counter and use it in the kanban templates. - message_unread_counter is added, a counter of unread messages computed in the same time as message_unread. It is now used in kanban views. Views of several addons have been updated.
Diffstat (limited to 'addons/project_issue/project_issue_view.xml')
-rw-r--r--addons/project_issue/project_issue_view.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/project_issue/project_issue_view.xml b/addons/project_issue/project_issue_view.xml
index fb18002344d..a665e5d9dda 100644
--- a/addons/project_issue/project_issue_view.xml
+++ b/addons/project_issue/project_issue_view.xml
@@ -153,7 +153,7 @@
<field name="user_email"/>
<field name="user_id"/>
<field name="date_deadline"/>
- <field name="message_summary"/>
+ <field name="message_unread_counter"/>
<templates>
<t t-name="kanban-tooltip">
<ul class="oe_kanban_tooltip">
@@ -183,7 +183,9 @@
<field name="tag_ids"/>
</div>
<div class="oe_kanban_bottom_left">
- <t t-raw="record.message_summary.raw_value"/>
+ <t t-if="record.message_unread_counter.raw_value">
+ <span class='oe_kanban_mail_new' title='Unread Messages'><i class='fa fa-comments'/><t t-raw="record.message_unread_counter.raw_value"/></span>
+ </t>
</div>
<div class="oe_kanban_bottom_right">
<img t-att-src="kanban_image('res.users', 'image_small', record.user_id.raw_value)" t-att-title="record.user_id.value" width="24" height="24" class="oe_kanban_avatar pull-right"/>