Skip to content

Commit

Permalink
[MIG] website_snippet_product_category: Migration to 16.0
Browse files Browse the repository at this point in the history
TT44390
  • Loading branch information
pilarvargas-tecnativa committed Aug 8, 2023
1 parent e5d5d05 commit 7c09a97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion website_snippet_product_category/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "Website Snippet Product Category",
"category": "Website",
"summary": "Adds a new snippet to show e-commerce categories",
"version": "15.0.1.0.0",
"version": "16.0.1.0.0",
"license": "LGPL-3",
"website": "https://github.com/OCA/e-commerce",
"author": "Tecnativa, Odoo Community Association (OCA)",
Expand Down
6 changes: 4 additions & 2 deletions website_snippet_product_category/controllers/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def render_product_category(self, template, **kwargs):
]
)
keep = QueryURL("/shop", category=0)

Check warning on line 23 in website_snippet_product_category/controllers/website.py

View check run for this annotation

Codecov / codecov/patch

website_snippet_product_category/controllers/website.py#L23

Added line #L23 was not covered by tests
return request.website.viewref(template)._render(
{"object": categories, "keep": keep}

return request.env["ir.ui.view"]._render_template(

Check warning on line 25 in website_snippet_product_category/controllers/website.py

View check run for this annotation

Codecov / codecov/patch

website_snippet_product_category/controllers/website.py#L25

Added line #L25 was not covered by tests
request.website.viewref(template).key,
{"object": categories, "keep": keep},
)

0 comments on commit 7c09a97

Please sign in to comment.