Skip to content

Commit 030218b

Browse files
committed
[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]: odoo/odoo@e96ce8e [refactor into html_builder]: odoo/odoo@9fe45e2b7ddb runbot-226545 closes #1101 Signed-off-by: Robin Lejeune (role) <[email protected]>
1 parent a0bff7b commit 030218b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test_themes/static/src/systray_items/website_switcher.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import { patch } from "@web/core/utils/patch";
44
import { useService } from '@web/core/utils/hooks';
5-
import { WebsiteSwitcherSystray } from '@website/systray_items/website_switcher';
5+
import { WebsiteSwitcherSystrayItem } from "@website/client_actions/website_preview/website_switcher_systray_item";
66
import { onMounted, useState } from "@odoo/owl";
77

8-
patch(WebsiteSwitcherSystray.prototype, {
8+
patch(WebsiteSwitcherSystrayItem.prototype, {
99
setup() {
1010
super.setup();
1111

@@ -39,5 +39,5 @@ patch(WebsiteSwitcherSystray.prototype, {
3939
});
4040
},
4141

42-
template: 'test_themes.WebsiteSwitcherSystray',
42+
template: "test_themes.WebsiteSwitcherSystrayItem",
4343
});

test_themes/static/src/systray_items/website_switcher.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<img t-att-src="url" width="150"/>
55
</t>
66

7-
<t t-name="test_themes.WebsiteSwitcherSystray" t-inherit="website.WebsiteSwitcherSystray" t-inherit-mode="extension">
7+
<t t-name="test_themes.WebsiteSwitcherSystrayItem" t-inherit="website.WebsiteSwitcherSystrayItem" t-inherit-mode="extension">
88
<!-- With this module installed, disable the warning -->
99
<xpath expr="//DropdownItem/t[@t-if='!element.domain']" position="replace">
1010
</xpath>

0 commit comments

Comments
 (0)