From cc2bfdbf42a49875fa04c5a6425bdc39e0697459 Mon Sep 17 00:00:00 2001 From: Pierre Paridans Date: Tue, 29 Aug 2023 15:04:14 +0200 Subject: [PATCH] [IMP] web: remove root_widget task-3439226 Part-of: odoo/odoo#133289 --- addons/mrp_subcontracting/__manifest__.py | 2 -- addons/project/__manifest__.py | 2 -- addons/web/__manifest__.py | 1 - addons/web/static/src/legacy/root_widget.js | 12 ------------ 4 files changed, 17 deletions(-) delete mode 100644 addons/web/static/src/legacy/root_widget.js diff --git a/addons/mrp_subcontracting/__manifest__.py b/addons/mrp_subcontracting/__manifest__.py index 43cbf45f8f1..d2e6ebd0bed 100644 --- a/addons/mrp_subcontracting/__manifest__.py +++ b/addons/mrp_subcontracting/__manifest__.py @@ -164,9 +164,7 @@ 'web/static/src/legacy/legacy_service_provider.js', 'web/static/src/legacy/legacy_promise_error_handler.js', 'web/static/src/legacy/legacy_rpc_error_handler.js', - 'web/static/src/legacy/root_widget.js', 'web/static/src/legacy/legacy_setup.js', - 'web/static/src/legacy/root_widget.js', 'web/static/src/legacy/backend_utils.js', 'web/static/src/legacy/utils.js', 'web/static/src/legacy/js/core/dates.js', diff --git a/addons/project/__manifest__.py b/addons/project/__manifest__.py index a6be90ee5a8..fa4413d6610 100644 --- a/addons/project/__manifest__.py +++ b/addons/project/__manifest__.py @@ -215,9 +215,7 @@ 'web/static/src/legacy/legacy_service_provider.js', 'web/static/src/legacy/legacy_promise_error_handler.js', 'web/static/src/legacy/legacy_rpc_error_handler.js', - 'web/static/src/legacy/root_widget.js', 'web/static/src/legacy/legacy_setup.js', - 'web/static/src/legacy/root_widget.js', 'web/static/src/legacy/backend_utils.js', 'web/static/src/legacy/utils.js', 'web/static/src/legacy/js/core/dates.js', diff --git a/addons/web/__manifest__.py b/addons/web/__manifest__.py index 4d4a90fa42a..2c3fe9b5188 100644 --- a/addons/web/__manifest__.py +++ b/addons/web/__manifest__.py @@ -156,7 +156,6 @@ This module provides the core of the Odoo Web Client. 'web/static/src/legacy/legacy_service_provider.js', 'web/static/src/legacy/legacy_promise_error_handler.js', 'web/static/src/legacy/legacy_rpc_error_handler.js', - 'web/static/src/legacy/root_widget.js', 'web/static/src/legacy/backend_utils.js', 'web/static/src/legacy/utils.js', 'web/static/src/legacy/js/core/dates.js', diff --git a/addons/web/static/src/legacy/root_widget.js b/addons/web/static/src/legacy/root_widget.js deleted file mode 100644 index 4ad94ed6da7..00000000000 --- a/addons/web/static/src/legacy/root_widget.js +++ /dev/null @@ -1,12 +0,0 @@ -/** @odoo-module alias=root.widget **/ -/** - * This module exists so that web_tour can use it as the parent of the - * TourManager so it can get access to _trigger_up. - */ -// need to wait for owl.Component.env to be set by web.legacySetup -import "web.legacySetup"; -import { ComponentAdapter } from "@web/legacy/js/owl_compatibility"; -// for its method _trigger_up. We can't use a standalone adapter because it -// attempt to call env.isDebug which is not defined in the tests when this -// module is loaded. -export default new ComponentAdapter({ Component: owl.Component }, owl.Component.env);