Skip to content

Commit 23c1c4a

Browse files
carlos-lopez-tecnativaAlexgars73
authored andcommitted
[MIG] website_sale_product_brand: Migration to version 17.0
1 parent 270100b commit 23c1c4a

2 files changed

Lines changed: 9 additions & 17 deletions

File tree

website_sale_product_brand/__manifest__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"Tecnativa, "
99
"Odoo Community Association (OCA)",
1010
"website": "https://github.com/OCA/e-commerce",
11-
"version": "16.0.1.0.1",
11+
"version": "17.0.1.0.0",
1212
"license": "AGPL-3",
1313
"depends": ["product_brand", "website_sale"],
1414
"data": [
@@ -26,7 +26,7 @@
2626
"/website_sale_product_brand/static/src/scss/website_sale_product_brand.scss"
2727
],
2828
"web.assets_tests": [
29-
"/website_sale_product_brand/static/src/js/tour.js",
29+
"/website_sale_product_brand/static/src/js/tour.esm.js",
3030
],
3131
},
3232
"installable": True,
Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
/** @odoo-module **/
12
/* License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */
23

3-
odoo.define("website_sale_product_brand.tour", function (require) {
4-
"use strict";
4+
import {registry} from "@web/core/registry";
55

6-
var tour = require("web_tour.tour");
7-
8-
var steps = [
6+
registry.category("web_tour.tours").add("website_sale_product_brand", {
7+
test: true,
8+
url: "/",
9+
steps: () => [
910
{
1011
trigger: "a[href='/page/product_brands']",
1112
content: "Go to 'Product brand' page",
@@ -26,14 +27,5 @@ odoo.define("website_sale_product_brand.tour", function (require) {
2627
content: "select Apple",
2728
trigger: 'section a div:contains("Apple")',
2829
},
29-
];
30-
31-
tour.register(
32-
"website_sale_product_brand",
33-
{
34-
url: "/",
35-
test: true,
36-
},
37-
steps
38-
);
30+
],
3931
});

0 commit comments

Comments
 (0)