From 030218b5570d0ca213b97af6b760b3b7c9388909 Mon Sep 17 00:00:00 2001 From: "Robin Lejeune (role)" Date: Fri, 13 Jun 2025 10:19:16 +0200 Subject: [PATCH] [FIX] test_themes: use new website switcher systray Commit [e96ce8ed] deleted the old website systray items, which have been moved and slightly rewritten with the [refactor into html_builder]. In the process, patches made in test_themes were overlooked. This commit makes sure to patch the right component and template. [e96ce8ed]: https://github.com/odoo/odoo/commit/e96ce8edb020b55bc6ccd7fa579f31ee80d600f7 [refactor into html_builder]: https://github.com/odoo/odoo/commit/9fe45e2b7ddb runbot-226545 closes odoo/design-themes#1101 Signed-off-by: Robin Lejeune (role) --- test_themes/static/src/systray_items/website_switcher.js | 6 +++--- test_themes/static/src/systray_items/website_switcher.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test_themes/static/src/systray_items/website_switcher.js b/test_themes/static/src/systray_items/website_switcher.js index b112dd28b..9d3b19108 100644 --- a/test_themes/static/src/systray_items/website_switcher.js +++ b/test_themes/static/src/systray_items/website_switcher.js @@ -2,10 +2,10 @@ import { patch } from "@web/core/utils/patch"; import { useService } from '@web/core/utils/hooks'; -import { WebsiteSwitcherSystray } from '@website/systray_items/website_switcher'; +import { WebsiteSwitcherSystrayItem } from "@website/client_actions/website_preview/website_switcher_systray_item"; import { onMounted, useState } from "@odoo/owl"; -patch(WebsiteSwitcherSystray.prototype, { +patch(WebsiteSwitcherSystrayItem.prototype, { setup() { super.setup(); @@ -39,5 +39,5 @@ patch(WebsiteSwitcherSystray.prototype, { }); }, - template: 'test_themes.WebsiteSwitcherSystray', + template: "test_themes.WebsiteSwitcherSystrayItem", }); diff --git a/test_themes/static/src/systray_items/website_switcher.xml b/test_themes/static/src/systray_items/website_switcher.xml index c60922962..84f93a86b 100644 --- a/test_themes/static/src/systray_items/website_switcher.xml +++ b/test_themes/static/src/systray_items/website_switcher.xml @@ -4,7 +4,7 @@ - +