[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) <aab@odoo.com>
This commit is contained in:
Bruno Boi (boi)
2024-02-02 10:02:08 +01:00
parent 1d47f8ad57
commit e50cc5032b
2 changed files with 5 additions and 5 deletions
@@ -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]}),
};
}
});