From e50cc5032bcc60df203ad44e00f04fdfe785332c Mon Sep 17 00:00:00 2001 From: "Bruno Boi (boi)" Date: Fri, 2 Feb 2024 10:02:08 +0100 Subject: [PATCH] [FIX] test_themes: adapt switcher tooltip format This adapts the WebsiteSwitcherSystray's DropdownItem tooltips dataset to the changed API brought in the community repository. closes odoo/design-themes#765 Task: 3266145 Related: odoo/enterprise#48452 Related: odoo/odoo#137691 Signed-off-by: Aaron Bohy (aab) --- test_themes/static/src/systray_items/website_switcher.js | 8 ++++---- test_themes/static/src/systray_items/website_switcher.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test_themes/static/src/systray_items/website_switcher.js b/test_themes/static/src/systray_items/website_switcher.js index 110e70da4..7394298b9 100644 --- a/test_themes/static/src/systray_items/website_switcher.js +++ b/test_themes/static/src/systray_items/website_switcher.js @@ -18,10 +18,10 @@ patch(WebsiteSwitcherSystray.prototype, { const themesWebsites = await this.orm.call('website', 'get_test_themes_websites_theme_preview'); for (const themeId in themesWebsites) { this.tooltips[themeId] = { - tooltipTemplate: 'test_themes.ThemeTooltip', - tooltipPosition: 'left', - tooltipDelay: 100, - tooltipInfo: JSON.stringify({url: themesWebsites[themeId]}), + "data-tooltip-template": 'test_themes.ThemeTooltip', + "data-tooltip-position": 'left', + "data-tooltip-delay": 100, + "data-tooltip-info": JSON.stringify({url: themesWebsites[themeId]}), }; } }); diff --git a/test_themes/static/src/systray_items/website_switcher.xml b/test_themes/static/src/systray_items/website_switcher.xml index bd004e0be..602e8dc1c 100644 --- a/test_themes/static/src/systray_items/website_switcher.xml +++ b/test_themes/static/src/systray_items/website_switcher.xml @@ -6,7 +6,7 @@ - this.tooltips[element.id] + this.tooltips[element.id]