diff --git a/website_sale_product_brand/README.rst b/website_sale_product_brand/README.rst index 54075290fd..9c1635e1fa 100644 --- a/website_sale_product_brand/README.rst +++ b/website_sale_product_brand/README.rst @@ -106,6 +106,7 @@ Contributors - Sergio Teruel - Alexandre Díaz - David Vidal + - Carlos Lopez Maintainers ----------- diff --git a/website_sale_product_brand/__manifest__.py b/website_sale_product_brand/__manifest__.py index 2bf19b956e..9e109e12ad 100644 --- a/website_sale_product_brand/__manifest__.py +++ b/website_sale_product_brand/__manifest__.py @@ -8,7 +8,7 @@ "Tecnativa, " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/e-commerce", - "version": "16.0.1.0.1", + "version": "17.0.1.0.0", "license": "AGPL-3", "depends": ["product_brand", "website_sale"], "data": [ @@ -26,7 +26,7 @@ "/website_sale_product_brand/static/src/scss/website_sale_product_brand.scss" ], "web.assets_tests": [ - "/website_sale_product_brand/static/src/js/tour.js", + "/website_sale_product_brand/static/src/js/tour.esm.js", ], }, "installable": True, diff --git a/website_sale_product_brand/readme/CONTRIBUTORS.md b/website_sale_product_brand/readme/CONTRIBUTORS.md index 20b8de7fcd..0b799c1139 100644 --- a/website_sale_product_brand/readme/CONTRIBUTORS.md +++ b/website_sale_product_brand/readme/CONTRIBUTORS.md @@ -8,3 +8,4 @@ > - Sergio Teruel \<\> > - Alexandre Díaz > - David Vidal + > - Carlos Lopez diff --git a/website_sale_product_brand/static/description/index.html b/website_sale_product_brand/static/description/index.html index 3656c56e4b..f73ffd270c 100644 --- a/website_sale_product_brand/static/description/index.html +++ b/website_sale_product_brand/static/description/index.html @@ -452,6 +452,7 @@

Contributors

  • Sergio Teruel <sergio.teruel@tecnativa.com>
  • Alexandre Díaz
  • David Vidal
  • +
  • Carlos Lopez
  • diff --git a/website_sale_product_brand/static/src/js/tour.js b/website_sale_product_brand/static/src/js/tour.esm.js similarity index 69% rename from website_sale_product_brand/static/src/js/tour.js rename to website_sale_product_brand/static/src/js/tour.esm.js index 4108ac522e..ed89fb3622 100644 --- a/website_sale_product_brand/static/src/js/tour.js +++ b/website_sale_product_brand/static/src/js/tour.esm.js @@ -1,11 +1,12 @@ +/** @odoo-module **/ /* License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */ -odoo.define("website_sale_product_brand.tour", function (require) { - "use strict"; +import {registry} from "@web/core/registry"; - var tour = require("web_tour.tour"); - - var steps = [ +registry.category("web_tour.tours").add("website_sale_product_brand", { + test: true, + url: "/", + steps: () => [ { trigger: "a[href='/page/product_brands']", content: "Go to 'Product brand' page", @@ -26,14 +27,5 @@ odoo.define("website_sale_product_brand.tour", function (require) { content: "select Apple", trigger: 'section a div:contains("Apple")', }, - ]; - - tour.register( - "website_sale_product_brand", - { - url: "/", - test: true, - }, - steps - ); + ], });