From d4bd8e7cc66f874c919aab39f0eac0bc8178d819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Tue, 14 Jun 2022 10:48:11 +0000 Subject: [PATCH] [FIX] mail: guard MessageSeenIndicatorView/messageSeenIndicator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up of https://github.com/odoo/odoo/pull/88950 Commit above introduced `MessageSeenIndicatorView`. Conceptually, `MessageSeenIndicatorView/messageSeenIndicator` is required. However, the current implementation make it possible to have a view without the related pure logic record. This commit simply guards the template to take this implementation detail into account, as to not make it crash. Note that future changes in modelling will enforce `MessageSeenIndicatorView/messageSeenIndicator` being required, so that we won't need to guard it in template. But this is a fix in stable version, so it's safer to keep minimal code changes. closes odoo/odoo#93599 X-original-commit: 495379b20c077ab27b91850673222893e0d14a8e Signed-off-by: Sébastien Theys (seb) --- .../message_seen_indicator/message_seen_indicator.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/components/message_seen_indicator/message_seen_indicator.xml b/addons/mail/static/src/components/message_seen_indicator/message_seen_indicator.xml index 6cd75360806..2483ff22052 100644 --- a/addons/mail/static/src/components/message_seen_indicator/message_seen_indicator.xml +++ b/addons/mail/static/src/components/message_seen_indicator/message_seen_indicator.xml @@ -2,7 +2,7 @@ - +