Skip to content

Commit

Permalink
[MIG] document_page_portal: Migration to 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kaynnan committed Apr 5, 2024
1 parent bc45eab commit bdc4168
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion document_page_portal/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"name": "Document Page Portal",
"summary": """
This module enables document page portal""",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"category": "Knowledge Management",
"author": "Escodoo, Odoo Community Association (OCA)",
"maintainers": ["marcelsavegnago"],
Expand Down
3 changes: 0 additions & 3 deletions document_page_portal/controllers/portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ def portal_my_knowledge_document_pages(
sortby = "date"
order = searchbar_sortings[sortby]["order"]

# archive groups - Default Group By 'create_date'
archive_groups = self._get_archive_groups("document.page", domain)
if date_begin and date_end:
domain += [

Check warning on line 76 in document_page_portal/controllers/portal.py

View check run for this annotation

Codecov / codecov/patch

document_page_portal/controllers/portal.py#L76

Added line #L76 was not covered by tests
("create_date", ">", date_begin),
Expand Down Expand Up @@ -114,7 +112,6 @@ def portal_my_knowledge_document_pages(
"page_name": "document_page",
"default_url": "/my/knowledge/s",
"pager": pager,
"archive_groups": archive_groups,
"searchbar_sortings": searchbar_sortings,
"searchbar_inputs": searchbar_inputs,
"sortby": sortby,
Expand Down
4 changes: 2 additions & 2 deletions document_page_portal/tests/test_document_page_portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_01_document_page_portal_tour(self):
}
)

self.phantom_js(
self.browser_js(
"/",
"odoo.__DEBUG__.services['web_tour.tour']"
".run('document_page_portal_tour')",
Expand All @@ -26,7 +26,7 @@ def test_01_document_page_portal_tour(self):
)

def test_02_document_page_portal_tour(self):
self.phantom_js(
self.browser_js(
"/",
"odoo.__DEBUG__.services['web_tour.tour']"
".run('document_page_portal_search_tour')",
Expand Down

0 comments on commit bdc4168

Please sign in to comment.