From 0ecf1636eb51845988133c2a26cbb02b68b267d6 Mon Sep 17 00:00:00 2001 From: Jorge Pinna Puissant Date: Thu, 5 Oct 2023 09:01:10 +0200 Subject: [PATCH] [REF] *: remove owl from linter's accepted global variables Before this commit, owl was in the linter's accepted global variables. This allowed direct access to owl global object. For instance, to use xml from owl, you could do : `const { xml } = owl;` or you could use it directly: `owl.xml` Now, owl is not accepted on linter's global variables anymore, so to import xml, now you need to use a proper import: `import { xml } from "@odoo/owl";` task-id 3498859 closes odoo/design-themes#709 Related: odoo/odoo#137517 Related: odoo/enterprise#48364 Signed-off-by: Samuel Degueldre (sad) --- test_themes/static/src/systray_items/website_switcher.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test_themes/static/src/systray_items/website_switcher.js b/test_themes/static/src/systray_items/website_switcher.js index b5da7a1f1..110e70da4 100644 --- a/test_themes/static/src/systray_items/website_switcher.js +++ b/test_themes/static/src/systray_items/website_switcher.js @@ -3,8 +3,7 @@ import { patch } from "@web/core/utils/patch"; import { useService } from '@web/core/utils/hooks'; import { WebsiteSwitcherSystray } from '@website/systray_items/website_switcher'; - -const { onMounted, useState } = owl; +import { onMounted, useState } from "@odoo/owl"; patch(WebsiteSwitcherSystray.prototype, { setup() {