summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/message
diff options
context:
space:
mode:
authorXavier Dubuc <xdu@odoo.com>2020-07-13 12:56:55 +0000
committerXavier Dubuc <xdu@odoo.com>2020-07-16 15:53:02 +0000
commitdecf5147d1fb5569c3036d2ff45aa9350f28aa00 (patch)
treefe3de3760fdbb1ba92b5f1b8ba5322f9cc8ec01c /addons/mail/static/src/components/message
parent9afee4f2eb4a0c421d2e0eaffd1e968ca7f84dfb (diff)
[FIX] mail: show subject of the message in inbox if set
task-2280146 closes odoo/odoo#54599 X-original-commit: 3114c7dab3c7f0f63e59f01fd06237fdc109203a Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/message')
-rw-r--r--addons/mail/static/src/components/message/message.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/mail/static/src/components/message/message.xml b/addons/mail/static/src/components/message/message.xml
index 787a34c9006..fecc16d4be4 100644
--- a/addons/mail/static/src/components/message/message.xml
+++ b/addons/mail/static/src/components/message/message.xml
@@ -180,6 +180,9 @@
</ul>
</t>
</div>
+ <t t-if="message.subject and threadViewer and threadViewer.thread and (threadViewer.thread.mass_mailing or [env.messaging.inbox, env.messaging.history].includes(threadViewer.thread))">
+ <p class="o_Message_subject">Subject: <t t-esc="message.subject"/></p>
+ </t>
<t t-if="message.attachments and message.attachments.length > 0">
<div class="o_Message_footer">
<!-- TODO XDU This does not allow to preview all attachments at once, find somethind else -->