Skip to content

Commit

Permalink
[MIG] website_sale_hide_empty_category: Migration to version 18.0
Browse files Browse the repository at this point in the history
TT54389
  • Loading branch information
pilarvargas-tecnativa committed Jan 28, 2025
1 parent 28b84af commit 75afd32
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion website_sale_hide_empty_category/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Website Sale - Hide Empty Categories",
"summary": "Hide any Product Categories that are empty",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"category": "Website",
"website": "https://github.com/OCA/e-commerce",
"author": "LasLabs, Odoo Community Association (OCA)",
Expand Down
14 changes: 8 additions & 6 deletions website_sale_hide_empty_category/static/src/js/tour.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/** @odoo-module **/

/* License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */
import {registry} from "@web/core/registry";

Expand All @@ -8,16 +6,20 @@ registry.category("web_tour.tours").add("website_sale_hide_empty_category", {
url: "/shop",
steps: () => [
{
trigger: "#products_grid_before label:contains('Category Test Posted')",
extra_trigger:
"#products_grid_before:not(:has(label:contains('Category Test Not Posted')))",
trigger: "#products_grid_before a:contains('Category Test Posted')",
},
{
trigger:
"#products_grid_before:not(:has(a:contains('Category Test Not Posted')))",
},
{
trigger: "a[href='/shop']",
},
{
trigger: ".o_wsale_filmstip_wrapper span:contains('Category Test Posted')",
extra_trigger:
},
{
trigger:
".o_wsale_filmstip_wrapper:not(:has(span:contains('Category Test Not Posted')))",
},
],
Expand Down

0 comments on commit 75afd32

Please sign in to comment.