From 6681d6cc6d72a5f1cfb242846713cc92fee83f28 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 17 Dec 2024 16:08:23 +0100 Subject: [PATCH] [FIX] test_themes: prepare restoring the website switcher The forward-port of [1] made no adaptation to the code, and it now simply crashes when trying to use the website switcher when test_themes is installed. This commit, joined to another related fix in community, will be adapted in the forward-ported version to actually fix the issue. Meanwhile, it fixes a linter error introduced by that same [1] commit. [1]: https://github.com/odoo/design-themes/commit/c3af5d9796929025c9503ab639afc8c60a262b3f closes odoo/design-themes#1030 Related: odoo/odoo#190877 Signed-off-by: Quentin Smetz (qsm) --- test_themes/static/src/systray_items/website_switcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_themes/static/src/systray_items/website_switcher.js b/test_themes/static/src/systray_items/website_switcher.js index 9274cb1e1..3506f3924 100644 --- a/test_themes/static/src/systray_items/website_switcher.js +++ b/test_themes/static/src/systray_items/website_switcher.js @@ -36,7 +36,7 @@ patch(WebsiteSwitcherSystray.prototype, 'test_themes_website_switcher_systray', ...elem.dataset, ...this.tooltips[elem.id] }; - return elem + return elem; }); },