Skip to content

Commit

Permalink
[MIG] website_sale_product_brand: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ntodorova committed Feb 12, 2024
1 parent e2c8a6b commit 2be1a1b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 36 deletions.
2 changes: 1 addition & 1 deletion website_sale_product_brand/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
67 changes: 32 additions & 35 deletions website_sale_product_brand/static/src/js/tour.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,36 @@
/** @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");
const steps = [
{
trigger: "a[href='/page/product_brands']",
content: "Go to 'Product brand' page",
position: "bottom",
},
{
content: "search Apple",
trigger: 'form input[name="search"]',
run: "text Apple",
position: "bottom",
},
{
content: "Click to search Apple",
trigger: 'form:has(input[name="search"]) button',
position: "bottom",
},
{
content: "select Apple",
trigger: 'section a div:contains("Apple")',
},
];

var steps = [
{
trigger: "a[href='/page/product_brands']",
content: "Go to 'Product brand' page",
position: "bottom",
},
{
content: "search Apple",
trigger: 'form input[name="search"]',
run: "text Apple",
position: "bottom",
},
{
content: "Click to search Apple",
trigger: 'form:has(input[name="search"]) button',
position: "bottom",
},
{
content: "select Apple",
trigger: 'section a div:contains("Apple")',
},
];

tour.register(
"website_sale_product_brand",
{
url: "/",
test: true,
},
steps
);
});
registry.category("web_tour.tours").add(
"website_sale_product_brand",
{
url: "/",
test: true,
steps: () => steps,
},
);

0 comments on commit 2be1a1b

Please sign in to comment.