-
-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] website_snippet_product_category: Migration to version 18.0
TT54542
- Loading branch information
1 parent
31bf525
commit 2453b13
Showing
11 changed files
with
71 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
website_snippet_product_category/static/src/js/snippet.options.esm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
website_snippet_product_category/static/src/tests/website_snippet_product_category.esm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* Copyright 2025 Tecnativa - Pilar Vargas | ||
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). */ | ||
import { | ||
clickOnSave, | ||
clickOnSnippet, | ||
insertSnippet, | ||
registerWebsitePreviewTour, | ||
} from "@website/js/tours/tour_utils"; | ||
|
||
registerWebsitePreviewTour( | ||
"product_category", | ||
{ | ||
url: "/", | ||
edition: true, | ||
}, | ||
() => [ | ||
...insertSnippet({id: "s_product_category", name: "Product Category"}), | ||
...clickOnSnippet({id: "s_product_category", name: "Product Category"}), | ||
...clickOnSave(), | ||
] | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import test_ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright 2025 Tecnativa - Pilar Vargas | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). | ||
|
||
import odoo.tests | ||
from odoo.tests import tagged | ||
|
||
|
||
@tagged("post_install", "-at_install") | ||
class TestUi(odoo.tests.HttpCase): | ||
def test_admin_tour_marginless_gallery(self): | ||
self.start_tour( | ||
self.env["website"].get_client_action_url("/"), | ||
"product_category", | ||
login="admin", | ||
) |