[IMP] mail: guard NotificationPopoverComponent

Task-2797754

closes odoo/odoo#86839

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Alexandre Kühn
2022-03-23 14:37:55 +01:00
parent 583dafa240
commit 5f6da59b02
@@ -2,18 +2,20 @@
<templates xml:space="preserve">
<t t-name="mail.NotificationPopover" owl="1">
<div class="o_NotificationPopover" t-attf-class="{{ className }}" t-ref="root">
<t t-if="messageView and messageView.message">
<t t-foreach="messageView.message.notifications" t-as="notification" t-key="notification.localId">
<div class="o_NotificationPopover_notification">
<i class="o_NotificationPopover_notificationIcon" t-att-class="notification.iconClass" t-att-title="notification.iconTitle" role="img"/>
<t t-if="notification.partner">
<span class="o_NotificationPopover_notificationPartnerName" t-esc="notification.partner.nameOrDisplayName"/>
</t>
</div>
<t t-if="messageView">
<div class="o_NotificationPopover" t-attf-class="{{ className }}" t-ref="root">
<t t-if="messageView.message">
<t t-foreach="messageView.message.notifications" t-as="notification" t-key="notification.localId">
<div class="o_NotificationPopover_notification">
<i class="o_NotificationPopover_notificationIcon" t-att-class="notification.iconClass" t-att-title="notification.iconTitle" role="img"/>
<t t-if="notification.partner">
<span class="o_NotificationPopover_notificationPartnerName" t-esc="notification.partner.nameOrDisplayName"/>
</t>
</div>
</t>
</t>
</t>
</div>
</div>
</t>
</t>
</templates>