mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-25 18:08:42 -06:00
[MIG] document_page_portal: Migration to 14.0
This commit is contained in:
parent
1260b377af
commit
a92578cbae
@ -6,7 +6,7 @@
|
|||||||
"name": "Document Page Portal",
|
"name": "Document Page Portal",
|
||||||
"summary": """
|
"summary": """
|
||||||
This module enables document page portal""",
|
This module enables document page portal""",
|
||||||
"version": "13.0.1.0.0",
|
"version": "14.0.1.0.0",
|
||||||
"category": "Knowledge Management",
|
"category": "Knowledge Management",
|
||||||
"author": "Escodoo, Odoo Community Association (OCA)",
|
"author": "Escodoo, Odoo Community Association (OCA)",
|
||||||
"maintainers": ["marcelsavegnago"],
|
"maintainers": ["marcelsavegnago"],
|
||||||
|
@ -72,8 +72,6 @@ class CustomerPortal(CustomerPortal):
|
|||||||
sortby = "date"
|
sortby = "date"
|
||||||
order = searchbar_sortings[sortby]["order"]
|
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:
|
if date_begin and date_end:
|
||||||
domain += [
|
domain += [
|
||||||
("create_date", ">", date_begin),
|
("create_date", ">", date_begin),
|
||||||
@ -114,7 +112,6 @@ class CustomerPortal(CustomerPortal):
|
|||||||
"page_name": "document_page",
|
"page_name": "document_page",
|
||||||
"default_url": "/my/knowledge/s",
|
"default_url": "/my/knowledge/s",
|
||||||
"pager": pager,
|
"pager": pager,
|
||||||
"archive_groups": archive_groups,
|
|
||||||
"searchbar_sortings": searchbar_sortings,
|
"searchbar_sortings": searchbar_sortings,
|
||||||
"searchbar_inputs": searchbar_inputs,
|
"searchbar_inputs": searchbar_inputs,
|
||||||
"sortby": sortby,
|
"sortby": sortby,
|
||||||
|
@ -16,7 +16,7 @@ class TestPortalDocumentPage(odoo.tests.HttpCase):
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
self.phantom_js(
|
self.browser_js(
|
||||||
"/",
|
"/",
|
||||||
"odoo.__DEBUG__.services['web_tour.tour']"
|
"odoo.__DEBUG__.services['web_tour.tour']"
|
||||||
".run('document_page_portal_tour')",
|
".run('document_page_portal_tour')",
|
||||||
@ -26,7 +26,7 @@ class TestPortalDocumentPage(odoo.tests.HttpCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def test_02_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']"
|
"odoo.__DEBUG__.services['web_tour.tour']"
|
||||||
".run('document_page_portal_search_tour')",
|
".run('document_page_portal_search_tour')",
|
||||||
|
Loading…
Reference in New Issue
Block a user