[IMP] mail: guard MessageInReplyToViewComponent

Task-2797754

closes odoo/odoo#86831

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Alexandre Kühn
2022-03-23 14:37:20 +01:00
parent f5107aef05
commit 37edb5b38c
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="mail.MessageInReplyToView" owl="1">
<small class="o_MessageInReplyToView text-small pt-1 pr-2 position-relative" t-attf-class="{{ className }}" t-ref="root">
<t t-if="messageInReplyToView">
<t t-if="messageInReplyToView">
<small class="o_MessageInReplyToView text-small pt-1 pr-2 position-relative" t-attf-class="{{ className }}" t-ref="root">
<t t-if="!messageInReplyToView.messageView.message.parentMessage.isEmpty">
<b class="o_MessageInReplyToView_author text-muted ml-2">@<t t-esc="messageInReplyToView.messageView.message.parentMessage.authorName"/></b>
<span class="o_MessageInReplyToView_body ml-1" t-on-click="messageInReplyToView.onClickReply">
@@ -18,7 +18,7 @@
<t t-if="messageInReplyToView.messageView.message.parentMessage.isEmpty">
<i class="o_MessageInReplyToView_deletedMessage text-muted ml-2">Original message was deleted</i>
</t>
</t>
</small>
</small>
</t>
</t>
</templates>