diff --git a/theme_artists/static/src/js/tour.js b/theme_artists/static/src/js/tour.js index 23120c638..f2190f72b 100644 --- a/theme_artists/static/src/js/tour.js +++ b/theme_artists/static/src/js/tour.js @@ -2,9 +2,6 @@ import wTourUtils from 'website.tour_utils'; -const core = require("web.core"); -const _t = core._t; - const snippets = [ { id: 's_carousel_wrapper', diff --git a/theme_aviato/static/src/js/tour.js b/theme_aviato/static/src/js/tour.js index 03fb523be..0fa65b98b 100644 --- a/theme_aviato/static/src/js/tour.js +++ b/theme_aviato/static/src/js/tour.js @@ -1,10 +1,8 @@ /** @odoo-module */ +import { _t } from 'web.core'; import wTourUtils from 'website.tour_utils'; -const core = require("web.core"); -const _t = core._t; - const snippets = [ { id: 's_cover', diff --git a/theme_bewise/static/src/js/tour.js b/theme_bewise/static/src/js/tour.js index b15454dbf..c087c1afb 100644 --- a/theme_bewise/static/src/js/tour.js +++ b/theme_bewise/static/src/js/tour.js @@ -1,8 +1,7 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; -const core = require("web.core"); -const _t = core._t; +import { _t } from 'web.core'; +import wTourUtils from 'website.tour_utils'; const snippets = [ { diff --git a/theme_bookstore/static/src/js/tour.js b/theme_bookstore/static/src/js/tour.js index 3558cb966..50cc99560 100644 --- a/theme_bookstore/static/src/js/tour.js +++ b/theme_bookstore/static/src/js/tour.js @@ -1,10 +1,8 @@ /** @odoo-module */ +import { _t } from 'web.core'; import wTourUtils from 'website.tour_utils'; -const core = require("web.core"); -const _t = core._t; - const snippets = [ { id: 's_cover', diff --git a/theme_clean/static/src/js/tour.js b/theme_clean/static/src/js/tour.js index d1790744d..27e0ae05b 100644 --- a/theme_clean/static/src/js/tour.js +++ b/theme_clean/static/src/js/tour.js @@ -1,10 +1,8 @@ /** @odoo-module */ +import { _t } from 'web.core'; import wTourUtils from 'website.tour_utils'; -const core = require("web.core"); -const _t = core._t; - const snippets = [ { id: 's_cover', diff --git a/theme_enark/static/src/js/tour.js b/theme_enark/static/src/js/tour.js index a5fdc1924..168efdd7f 100644 --- a/theme_enark/static/src/js/tour.js +++ b/theme_enark/static/src/js/tour.js @@ -1,10 +1,7 @@ odoo.define("theme_enark.tour.enark", function (require) { "use strict"; -const core = require("web.core"); -const _t = core._t; const wTourUtils = require("website.tour_utils"); -var tour = require("web_tour.tour"); const snippets = [ { diff --git a/theme_graphene/static/src/js/tour.js b/theme_graphene/static/src/js/tour.js index 89e9869af..073abcc16 100644 --- a/theme_graphene/static/src/js/tour.js +++ b/theme_graphene/static/src/js/tour.js @@ -1,11 +1,7 @@ odoo.define("theme_graphene.tour.graphene", function (require) { "use strict"; -const core = require("web.core"); -const _t = core._t; - const wTourUtils = require("website.tour_utils"); -var tour = require("web_tour.tour"); const snippets = [ { diff --git a/theme_kiddo/static/src/js/tour.js b/theme_kiddo/static/src/js/tour.js index b34d48e01..6dbee4c0c 100644 --- a/theme_kiddo/static/src/js/tour.js +++ b/theme_kiddo/static/src/js/tour.js @@ -1,8 +1,7 @@ /** @odoo-module */ -import wTourUtils from 'website.tour_utils'; -const core = require("web.core"); -const _t = core._t; +import { _t } from 'web.core'; +import wTourUtils from 'website.tour_utils'; const snippets = [ { diff --git a/theme_notes/static/src/js/tour.js b/theme_notes/static/src/js/tour.js index 4ba579657..817679b6b 100644 --- a/theme_notes/static/src/js/tour.js +++ b/theme_notes/static/src/js/tour.js @@ -1,10 +1,8 @@ /** @odoo-module */ +import { _t } from 'web.core'; import wTourUtils from 'website.tour_utils'; -const core = require("web.core"); -const _t = core._t; - const snippets = [ { id: 's_carousel', diff --git a/theme_odoo_experts/static/src/js/tour.js b/theme_odoo_experts/static/src/js/tour.js index d4d6f4ef4..1d079fe16 100644 --- a/theme_odoo_experts/static/src/js/tour.js +++ b/theme_odoo_experts/static/src/js/tour.js @@ -1,10 +1,8 @@ /** @odoo-module */ +import { _t } from 'web.core'; import wTourUtils from 'website.tour_utils'; -const core = require("web.core"); -const _t = core._t; - const snippets = [ { id: 's_cover', diff --git a/theme_orchid/static/src/js/tour.js b/theme_orchid/static/src/js/tour.js index d951ce520..ae85c83ec 100644 --- a/theme_orchid/static/src/js/tour.js +++ b/theme_orchid/static/src/js/tour.js @@ -1,10 +1,8 @@ /** @odoo-module */ +import { _t } from 'web.core'; import wTourUtils from 'website.tour_utils'; -const core = require("web.core"); -const _t = core._t; - const snippets = [ { id: 's_cover', diff --git a/theme_vehicle/static/src/js/tour.js b/theme_vehicle/static/src/js/tour.js index 0bce8c722..869cd05e7 100644 --- a/theme_vehicle/static/src/js/tour.js +++ b/theme_vehicle/static/src/js/tour.js @@ -1,11 +1,7 @@ odoo.define("theme_vehicle.tour.vehicle", function (require) { "use strict"; -const core = require("web.core"); -const _t = core._t; - const wTourUtils = require("website.tour_utils"); -var tour = require("web_tour.tour"); const snippets = [ {