diff --git a/test_themes/static/src/systray_items/website_switcher.js b/test_themes/static/src/systray_items/website_switcher.js index f9c4c722e..86f1bb822 100644 --- a/test_themes/static/src/systray_items/website_switcher.js +++ b/test_themes/static/src/systray_items/website_switcher.js @@ -1,6 +1,6 @@ /** @odoo-module **/ -import { patch } from 'web.utils'; +import { patch } from '@web/legacy/js/core/utils'; import { useService } from '@web/core/utils/hooks'; import { WebsiteSwitcherSystray } from '@website/systray_items/website_switcher'; diff --git a/theme_anelusia/static/src/js/tour.js b/theme_anelusia/static/src/js/tour.js index b32e0edf9..210d3b153 100644 --- a/theme_anelusia/static/src/js/tour.js +++ b/theme_anelusia/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; +import wTourUtils from '@website/js/tours/tour_utils'; const snippets = [ { diff --git a/theme_artists/static/src/js/tour.js b/theme_artists/static/src/js/tour.js index 15b87dbbc..a42494c39 100644 --- a/theme_artists/static/src/js/tour.js +++ b/theme_artists/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; +import wTourUtils from '@website/js/tours/tour_utils'; const snippets = [ { diff --git a/theme_avantgarde/static/src/js/tour.js b/theme_avantgarde/static/src/js/tour.js index cec49d920..0806e9cfd 100644 --- a/theme_avantgarde/static/src/js/tour.js +++ b/theme_avantgarde/static/src/js/tour.js @@ -1,5 +1,5 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; +import wTourUtils from '@website/js/tours/tour_utils'; const snippets = [ { diff --git a/theme_aviato/static/src/js/tour.js b/theme_aviato/static/src/js/tour.js index eab6fa2b7..17409fa8d 100644 --- a/theme_aviato/static/src/js/tour.js +++ b/theme_aviato/static/src/js/tour.js @@ -1,7 +1,7 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; -import { _t } from 'web.core'; +import wTourUtils from '@website/js/tours/tour_utils'; +import { _t } from '@web/legacy/js/services/core'; const snippets = [ { diff --git a/theme_beauty/static/src/js/tour.js b/theme_beauty/static/src/js/tour.js index 84fdfda1b..2a557ac61 100644 --- a/theme_beauty/static/src/js/tour.js +++ b/theme_beauty/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; +import wTourUtils from '@website/js/tours/tour_utils'; const snippets = [ { diff --git a/theme_bewise/static/src/js/tour.js b/theme_bewise/static/src/js/tour.js index 1d98ba68d..8782a7479 100644 --- a/theme_bewise/static/src/js/tour.js +++ b/theme_bewise/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; -import { _t } from 'web.core'; +import wTourUtils from '@website/js/tours/tour_utils'; +import { _t } from '@web/legacy/js/services/core'; const snippets = [ { diff --git a/theme_bistro/static/src/js/tour.js b/theme_bistro/static/src/js/tour.js index 5eca8a734..b225b0365 100644 --- a/theme_bistro/static/src/js/tour.js +++ b/theme_bistro/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; +import wTourUtils from '@website/js/tours/tour_utils'; const snippets = [ { diff --git a/theme_bookstore/static/src/js/tour.js b/theme_bookstore/static/src/js/tour.js index 1dfde30d8..24aefbab8 100644 --- a/theme_bookstore/static/src/js/tour.js +++ b/theme_bookstore/static/src/js/tour.js @@ -1,7 +1,7 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; -import { _t } from 'web.core'; +import wTourUtils from '@website/js/tours/tour_utils'; +import { _t } from '@web/legacy/js/services/core'; const snippets = [ { diff --git a/theme_buzzy/static/src/js/tour.js b/theme_buzzy/static/src/js/tour.js index a4fd4a477..82a13fcfa 100644 --- a/theme_buzzy/static/src/js/tour.js +++ b/theme_buzzy/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; +import wTourUtils from '@website/js/tours/tour_utils'; const snippets = [ { diff --git a/theme_clean/static/src/js/tour.js b/theme_clean/static/src/js/tour.js index 8f21fe675..c6772eb35 100644 --- a/theme_clean/static/src/js/tour.js +++ b/theme_clean/static/src/js/tour.js @@ -1,7 +1,7 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; -import { _t } from 'web.core'; +import wTourUtils from '@website/js/tours/tour_utils'; +import { _t } from '@web/legacy/js/services/core'; const snippets = [ { diff --git a/theme_cobalt/static/src/js/tour.js b/theme_cobalt/static/src/js/tour.js index 8ba3e0041..332afdecb 100644 --- a/theme_cobalt/static/src/js/tour.js +++ b/theme_cobalt/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; +import wTourUtils from '@website/js/tours/tour_utils'; const snippets = [ { diff --git a/theme_common/static/src/js/compatibility_editor.js b/theme_common/static/src/js/compatibility_editor.js index 48a45f910..0a99a2e21 100644 --- a/theme_common/static/src/js/compatibility_editor.js +++ b/theme_common/static/src/js/compatibility_editor.js @@ -1,6 +1,6 @@ /** @odoo-module **/ -import sOptions from "web_editor.snippets.options"; +import sOptions from "@web_editor/js/editor/snippets.options"; sOptions.registry.BackgroundImage.include({ /** diff --git a/theme_common/static/src/js/preheader.js b/theme_common/static/src/js/preheader.js index 3b90c6a8d..0f1c65219 100644 --- a/theme_common/static/src/js/preheader.js +++ b/theme_common/static/src/js/preheader.js @@ -1,7 +1,7 @@ /** @odoo-module **/ -import publicWidget from "web.public.widget"; -import "website.content.menu"; +import publicWidget from "@web/legacy/js/public/public_widget"; +import "@website/js/content/menu"; publicWidget.registry.StandardAffixedHeader.include({ /** diff --git a/theme_common/static/src/old_snippets/s_animated_boxes/000.js b/theme_common/static/src/old_snippets/s_animated_boxes/000.js index 9412d3054..f9c1284be 100644 --- a/theme_common/static/src/old_snippets/s_animated_boxes/000.js +++ b/theme_common/static/src/old_snippets/s_animated_boxes/000.js @@ -1,6 +1,6 @@ /** @odoo-module **/ -import publicWidget from "web.public.widget"; +import publicWidget from "@web/legacy/js/public/public_widget"; /** * This is a fix for some apple devices. diff --git a/theme_common/static/src/old_snippets/s_css_slider/000.js b/theme_common/static/src/old_snippets/s_css_slider/000.js index 1cfd1a650..7821567dc 100644 --- a/theme_common/static/src/old_snippets/s_css_slider/000.js +++ b/theme_common/static/src/old_snippets/s_css_slider/000.js @@ -1,6 +1,6 @@ /** @odoo-module **/ -import publicWidget from "web.public.widget"; +import publicWidget from "@web/legacy/js/public/public_widget"; publicWidget.registry.s_css_slider = publicWidget.Widget.extend({ selector: ".s_css_slider", diff --git a/theme_common/static/src/old_snippets/s_mini_nav_bar/000.js b/theme_common/static/src/old_snippets/s_mini_nav_bar/000.js index 3fc173fff..dac248fe0 100644 --- a/theme_common/static/src/old_snippets/s_mini_nav_bar/000.js +++ b/theme_common/static/src/old_snippets/s_mini_nav_bar/000.js @@ -1,7 +1,7 @@ /** @odoo-module **/ -import dom from "web.dom"; -import publicWidget from "web.public.widget"; +import dom from "@web/legacy/js/core/dom"; +import publicWidget from "@web/legacy/js/public/public_widget"; publicWidget.registry.miniNavbarScroll = publicWidget.Widget.extend({ selector: '.s_mini_nav_bar a[href*="#"]:not([href="#"])', diff --git a/theme_common/static/src/old_snippets/s_showcase_slider/000.js b/theme_common/static/src/old_snippets/s_showcase_slider/000.js index cca132433..f0b81058c 100644 --- a/theme_common/static/src/old_snippets/s_showcase_slider/000.js +++ b/theme_common/static/src/old_snippets/s_showcase_slider/000.js @@ -1,7 +1,7 @@ /** @odoo-module **/ -import dom from "web.dom"; -import publicWidget from "web.public.widget"; +import dom from "@web/legacy/js/core/dom"; +import publicWidget from "@web/legacy/js/public/public_widget"; publicWidget.registry.s_showcase_slider = publicWidget.Widget.extend({ selector: ".s_showcase_slider", diff --git a/theme_enark/static/src/js/tour.js b/theme_enark/static/src/js/tour.js index f63033b26..1505e9bd3 100644 --- a/theme_enark/static/src/js/tour.js +++ b/theme_enark/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module **/ -import wTourUtils from "website.tour_utils"; +import wTourUtils from "@website/js/tours/tour_utils"; const snippets = [ { diff --git a/theme_graphene/static/src/js/tour.js b/theme_graphene/static/src/js/tour.js index ace05327e..8b729a1cf 100644 --- a/theme_graphene/static/src/js/tour.js +++ b/theme_graphene/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module **/ -import wTourUtils from "website.tour_utils"; +import wTourUtils from "@website/js/tours/tour_utils"; const snippets = [ { diff --git a/theme_kea/static/src/js/tour.js b/theme_kea/static/src/js/tour.js index af99988b5..16dbc449a 100644 --- a/theme_kea/static/src/js/tour.js +++ b/theme_kea/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; +import wTourUtils from '@website/js/tours/tour_utils'; const snippets = [ { diff --git a/theme_kiddo/static/src/js/tour.js b/theme_kiddo/static/src/js/tour.js index d5ee7c622..26b0b7845 100644 --- a/theme_kiddo/static/src/js/tour.js +++ b/theme_kiddo/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; -import { _t } from 'web.core'; +import wTourUtils from '@website/js/tours/tour_utils'; +import { _t } from '@web/legacy/js/services/core'; const snippets = [ { diff --git a/theme_loftspace/static/src/js/tour.js b/theme_loftspace/static/src/js/tour.js index d96f902d6..2c122f3ad 100644 --- a/theme_loftspace/static/src/js/tour.js +++ b/theme_loftspace/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; +import wTourUtils from '@website/js/tours/tour_utils'; const snippets = [ { @@ -18,7 +18,7 @@ const snippets = [ { id: 's_images_wall', name: 'Images Wall', - }, + }, { id: 's_call_to_action', name: 'Call to Action', diff --git a/theme_monglia/static/src/js/tour.js b/theme_monglia/static/src/js/tour.js index 73dd88381..a927f948e 100644 --- a/theme_monglia/static/src/js/tour.js +++ b/theme_monglia/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; +import wTourUtils from '@website/js/tours/tour_utils'; const snippets = [ { diff --git a/theme_nano/static/src/js/tour.js b/theme_nano/static/src/js/tour.js index 6aadf61c7..3d379c225 100644 --- a/theme_nano/static/src/js/tour.js +++ b/theme_nano/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; +import wTourUtils from '@website/js/tours/tour_utils'; const snippets = [ { diff --git a/theme_notes/static/src/js/tour.js b/theme_notes/static/src/js/tour.js index 0655db150..c2c5b5da8 100644 --- a/theme_notes/static/src/js/tour.js +++ b/theme_notes/static/src/js/tour.js @@ -1,7 +1,7 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; -import { _t } from 'web.core'; +import wTourUtils from '@website/js/tours/tour_utils'; +import { _t } from '@web/legacy/js/services/core'; const snippets = [ { diff --git a/theme_odoo_experts/static/src/js/tour.js b/theme_odoo_experts/static/src/js/tour.js index a717a7b09..de4396907 100644 --- a/theme_odoo_experts/static/src/js/tour.js +++ b/theme_odoo_experts/static/src/js/tour.js @@ -1,7 +1,7 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; -import { _t } from 'web.core'; +import wTourUtils from '@website/js/tours/tour_utils'; +import { _t } from '@web/legacy/js/services/core'; const snippets = [ { diff --git a/theme_orchid/static/src/js/tour.js b/theme_orchid/static/src/js/tour.js index 3292b7070..07b6dfb24 100644 --- a/theme_orchid/static/src/js/tour.js +++ b/theme_orchid/static/src/js/tour.js @@ -1,7 +1,7 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; -import { _t } from 'web.core'; +import wTourUtils from '@website/js/tours/tour_utils'; +import { _t } from '@web/legacy/js/services/core'; const snippets = [ { diff --git a/theme_paptic/static/src/js/tour.js b/theme_paptic/static/src/js/tour.js index 6a645f5df..476909330 100644 --- a/theme_paptic/static/src/js/tour.js +++ b/theme_paptic/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; +import wTourUtils from '@website/js/tours/tour_utils'; const snippets = [ { diff --git a/theme_real_estate/static/src/js/tour.js b/theme_real_estate/static/src/js/tour.js index 1d2388336..9050ad9e2 100644 --- a/theme_real_estate/static/src/js/tour.js +++ b/theme_real_estate/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module **/ -import wTourUtils from "website.tour_utils"; +import wTourUtils from "@website/js/tours/tour_utils"; const snippets = [ { diff --git a/theme_test_custo/static/tests/tours/theme_menu_hierarchies.js b/theme_test_custo/static/tests/tours/theme_menu_hierarchies.js index c6b616b0a..0ecaf56c2 100644 --- a/theme_test_custo/static/tests/tours/theme_menu_hierarchies.js +++ b/theme_test_custo/static/tests/tours/theme_menu_hierarchies.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; +import wTourUtils from '@website/js/tours/tour_utils'; wTourUtils.registerWebsitePreviewTour('theme_menu_hierarchies', { url: '/example', diff --git a/theme_test_custo/static/tests/tours/website_theme_preview.js b/theme_test_custo/static/tests/tours/website_theme_preview.js index b31d6a096..896570f22 100644 --- a/theme_test_custo/static/tests/tours/website_theme_preview.js +++ b/theme_test_custo/static/tests/tours/website_theme_preview.js @@ -1,8 +1,8 @@ /** @odoo-module */ -import tour from "web_tour.tour"; +import { registry } from "@web/core/registry"; -tour.register("website_theme_preview", { +registry.category("web_tour.tours").add("website_theme_preview", { test: true, url: "/web#action=website.action_website_configuration", }, diff --git a/theme_treehouse/static/src/js/tour.js b/theme_treehouse/static/src/js/tour.js index 2ff874525..bf02dcdf1 100644 --- a/theme_treehouse/static/src/js/tour.js +++ b/theme_treehouse/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; +import wTourUtils from '@website/js/tours/tour_utils'; const snippets = [ { diff --git a/theme_vehicle/static/src/js/tour.js b/theme_vehicle/static/src/js/tour.js index 2f952bc38..6c5efa3e9 100644 --- a/theme_vehicle/static/src/js/tour.js +++ b/theme_vehicle/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module **/ -import wTourUtils from "website.tour_utils"; +import wTourUtils from "@website/js/tours/tour_utils"; const snippets = [ { diff --git a/theme_yes/static/src/js/tour.js b/theme_yes/static/src/js/tour.js index f0149306a..669e884a5 100644 --- a/theme_yes/static/src/js/tour.js +++ b/theme_yes/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; +import wTourUtils from '@website/js/tours/tour_utils'; const snippets = [ { diff --git a/theme_zap/static/src/js/tour.js b/theme_zap/static/src/js/tour.js index 8f0a652e5..326b2cb3e 100644 --- a/theme_zap/static/src/js/tour.js +++ b/theme_zap/static/src/js/tour.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; +import wTourUtils from '@website/js/tours/tour_utils'; const snippets = [ {