[IMP] mail: guard NotificationRequestComponent
Task-2797754 closes odoo/odoo#86843 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
@@ -20,6 +20,13 @@ export class NotificationRequest extends Component {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {NotificationRequestView}
|
||||
*/
|
||||
get notificationRequestView() {
|
||||
return this.messaging && this.messaging.models['NotificationRequestView'].get(this.props.localId);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Private
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<templates xml:space="preserve">
|
||||
|
||||
<t t-name="mail.NotificationRequest" owl="1">
|
||||
<div class="o_NotificationRequest" t-attf-class="{{ className }}" t-on-click="_onClick" t-ref="root">
|
||||
<t t-if="messaging">
|
||||
<t t-if="notificationRequestView">
|
||||
<div class="o_NotificationRequest" t-attf-class="{{ className }}" t-on-click="_onClick" t-ref="root">
|
||||
<div class="o_NotificationRequest_sidebar">
|
||||
<div class="o_NotificationRequest_imageContainer o_NotificationRequest_sidebarItem">
|
||||
<img class="o_NotificationRequest_image rounded-circle" src="/mail/static/src/img/odoobot.png" alt="Avatar of OdooBot"/>
|
||||
@@ -26,8 +26,8 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
|
||||
Reference in New Issue
Block a user