[REF] test_themes: remove legacy patch

This commit removes the use of legacy patch by using the modern patch.

closes odoo/design-themes#685

Related: odoo/enterprise#45271
Related: odoo/odoo#130867
Signed-off-by: Samuel Degueldre (sad) <sad@odoo.com>
This commit is contained in:
Michael (mcm)
2023-08-03 11:21:29 +00:00
parent a86d9f73df
commit feed58b94b
@@ -1,14 +1,14 @@
/** @odoo-module **/
import { patch } from '@web/legacy/js/core/utils';
import { patch } from "@web/core/utils/patch";
import { useService } from '@web/core/utils/hooks';
import { WebsiteSwitcherSystray } from '@website/systray_items/website_switcher';
const { onMounted, useState } = owl;
patch(WebsiteSwitcherSystray.prototype, 'test_themes_website_switcher_systray', {
patch(WebsiteSwitcherSystray.prototype, {
setup() {
this._super();
super.setup();
this.orm = useService('orm');
this.tooltips = useState({});