summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/thread.xml
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2016-01-28 15:39:23 +0100
committerGéry Debongnie <ged@odoo.com>2016-02-03 14:36:30 +0100
commit90d4f76100f2520f599bf3998ade81ac5e6183e5 (patch)
tree49d69ed4db95beddbe8a29e383057e709f58f232 /addons/mail/static/src/xml/thread.xml
parentcc36e03ddc83e73f7b2fa76b9a46e3eaa6298f25 (diff)
[FIX] mail: users can now reply directly in documents from channels
A missing feature in discuss was the possibility to directly reply to a message from a channel without opening the document. This commit add that feature. Now, there is a small 'reply' icon in channels (including inbox/starred) if the message comes from another document. This icon opens an extended composer, which will post the message in the document chatter.
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
-rw-r--r--addons/mail/static/src/xml/thread.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml
index ca863d9ad8f..6ed0700be11 100644
--- a/addons/mail/static/src/xml/thread.xml
+++ b/addons/mail/static/src/xml/thread.xml
@@ -46,7 +46,7 @@
</t>
<t t-name="mail.ChatThread.Message">
- <div t-att-class="'o_thread_message' + (message.expanded ? ' o_message_expanded' : '')" t-att-data-message-id="message.id">
+ <div t-att-class="'o_thread_message' + (message.expanded ? ' o_message_expanded ' : ' ') + (message.is_selected ? 'o_thread_selected_message' : '')" t-att-data-message-id="message.id">
<div t-if="options.display_avatar" class="o_thread_message_sidebar">
<t t-if="!message.mailto &amp;&amp; message.author_id[0]">
<img t-if="message.avatar_src &amp;&amp; message.display_author"
@@ -103,6 +103,9 @@
<i t-if="message.is_needaction &amp;&amp; options.display_needactions"
class="fa fa-check o_thread_message_needaction"
t-att-data-message-id="message.id" title="Mark as Read"/>
+ <i t-if="message.record_name &amp;&amp; message.model != 'mail.channel' &amp;&amp; options.display_reply_icon"
+ class="fa fa-reply o_thread_message_reply"
+ t-att-data-message-id="message.id" title="Reply"/>
</span>
</p>
<t t-if="message.tracking_value_ids &amp;&amp; message.tracking_value_ids.length &gt; 0">