diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-11-26 11:54:32 +0000 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-11-26 14:12:50 +0000 |
| commit | 6f7a04be0bbe870a33e85e3ff96f583206c30463 (patch) | |
| tree | f54fa108c51da960c77687926cb06f4583a90bc6 /addons/mail/static/src/xml/thread.xml | |
| parent | 889bdd356980843de238c85bac7f6538b903d493 (diff) | |
[FIX] mail: reply message from inbox
Revision on https://github.com/odoo/odoo/commit/cd34f6de727d5b3858420cff3c9d3c5995c4e75c
Before the commit above, it was possible to reply to a message
from Inbox. Those messages were linked to a document, and replying
to any of them put a response in the related document.
This feature has been broken since the commit above: the reply
icon was only shown on messages linked to a channel, instead of
message linked to a document. Also, it was erroneously prompting
that the message was sent to the channel, even though it was not
the case.
This commit fixes the issue by toggling the visibility of the
reply icon, so that it is shown only for messages that come from
a document. Also, since posting a message requires a thread, this
commit added the possibility to post a message from a mailbox,
which instead posts the message to the related document thread.
Task-ID 1912647
closes odoo/odoo#29028
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
| -rw-r--r-- | addons/mail/static/src/xml/thread.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml index e5db4a72524..f28e071b2f3 100644 --- a/addons/mail/static/src/xml/thread.xml +++ b/addons/mail/static/src/xml/thread.xml @@ -338,7 +338,7 @@ <i t-if="options.displayStars and !message.isSystemNotification() and !message.needsModeration()" t-att-class="'fa fa-lg o_thread_icon o_thread_message_star ' + (message.isStarred() ? 'fa-star' : 'fa-star-o')" t-att-data-message-id="message.getID()" title="Mark as Todo" role="img" aria-label="Mark as Todo"/> - <i t-if="message.originatesFromChannel() and options.displayReplyIcons" + <i t-if="message.isLinkedToDocumentThread() and options.displayReplyIcons" class="fa fa-reply o_thread_icon o_thread_message_reply" t-att-data-message-id="message.getID()" title="Reply" role="img" aria-label="Reply"/> <i t-if="message.isNeedaction() and options.displayMarkAsRead" |
