mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[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:
@@ -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({});
|
||||
|
||||
Reference in New Issue
Block a user