[FIX] theme_*: fix linter error for runbot build

There is a linter error in the modified files of this PR about `require`
not defined.
It's actually not really a problem as those files are transcompiled from
ES6 module to odoo module, injecting `require` before the file is
actually used/read by the browser, at which point no issue actually
arise.

Those linter error were introduced with PR [1] in Odoo 15 but were fix
in Odoo 16 with commit [2] (which should have arguably be done in Odoo
15).

[1]: https://github.com/odoo/design-themes/pull/500
[2]: https://github.com/odoo/design-themes/commit/dc2f5112022b5f987ed418e04b5e15c93dc7a731

closes odoo/design-themes#747

Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
This commit is contained in:
Romain Derie
2023-11-23 13:16:48 +01:00
parent 46b5757586
commit 08e5adc265
12 changed files with 10 additions and 38 deletions
-3
View File
@@ -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',
+1 -3
View File
@@ -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',
+2 -3
View File
@@ -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 = [
{
+1 -3
View File
@@ -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',
+1 -3
View File
@@ -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',
-3
View File
@@ -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 = [
{
-4
View File
@@ -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 = [
{
+2 -3
View File
@@ -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 = [
{
+1 -3
View File
@@ -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',
+1 -3
View File
@@ -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',
+1 -3
View File
@@ -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',
-4
View File
@@ -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 = [
{