From 89e036f0cffa1c0e4021bb02487ee2e36c77fdb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Mon, 21 Mar 2022 17:16:24 +0000 Subject: [PATCH] [IMP] mail: guard NotificationRequestComponent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-2797754 closes odoo/odoo#86843 Signed-off-by: Alexandre Kühn (aku) --- .../notification_request/notification_request.js | 7 +++++++ .../notification_request/notification_request.xml | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/addons/mail/static/src/components/notification_request/notification_request.js b/addons/mail/static/src/components/notification_request/notification_request.js index ca1dabfbd0e..5a688bf715c 100644 --- a/addons/mail/static/src/components/notification_request/notification_request.js +++ b/addons/mail/static/src/components/notification_request/notification_request.js @@ -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 //-------------------------------------------------------------------------- diff --git a/addons/mail/static/src/components/notification_request/notification_request.xml b/addons/mail/static/src/components/notification_request/notification_request.xml index deaecb1732c..aec25c359a4 100644 --- a/addons/mail/static/src/components/notification_request/notification_request.xml +++ b/addons/mail/static/src/components/notification_request/notification_request.xml @@ -2,8 +2,8 @@ -
- + +
Avatar of OdooBot @@ -26,8 +26,8 @@
- -
+
+