From 314b19610c451f6a759b5f11d8da26a6d2c5c9fa Mon Sep 17 00:00:00 2001 From: tsm-odoo Date: Wed, 24 May 2023 10:53:53 +0000 Subject: [PATCH] [FIX] bus: remove simple notification service from frontend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since [1], the notifications of type `simple_notification` are handled by a service in the bus module. Before [2] those notifications were handled by the messaging handler which was only loaded in the backend. This commit restores the previous behavior as the simple notification service starts the bus service which result in the websocket worker being loaded why it should be done lazily (i.e. only when the livechat is used). [1]: https://github.com/odoo/odoo/pull/119243 [2]: https://github.com/odoo/odoo/pull/110188 closes odoo/odoo#122266 Signed-off-by: Sébastien Theys (seb) --- addons/bus/__manifest__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/bus/__manifest__.py b/addons/bus/__manifest__.py index 72e5402daa6..9cec5d8550e 100644 --- a/addons/bus/__manifest__.py +++ b/addons/bus/__manifest__.py @@ -20,6 +20,7 @@ 'bus/static/src/*.js', 'bus/static/src/services/**/*.js', ('remove', 'bus/static/src/services/assets_watchdog_service.js'), + ('remove', 'bus/static/src/simple_notification_service.js'), 'bus/static/src/workers/websocket_worker.js', 'bus/static/src/workers/websocket_worker_utils.js', ],