document.page.tree
document.page
-
child_ids
100
@@ -42,7 +41,7 @@
name="web_ribbon"
text="Archived"
bg_color="bg-danger"
- attrs="{'invisible': [('active', '=', True)]}"
+ invisible="active == True"
/>
@@ -75,7 +74,7 @@
diff --git a/document_page_approval/__manifest__.py b/document_page_approval/__manifest__.py
index 81c3eaea720..7cbfb3f7119 100644
--- a/document_page_approval/__manifest__.py
+++ b/document_page_approval/__manifest__.py
@@ -3,7 +3,7 @@
{
"name": "Document Page Approval",
- "version": "16.0.1.1.0",
+ "version": "17.0.1.1.0",
"author": "Savoir-faire Linux, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/knowledge",
"license": "AGPL-3",
diff --git a/document_page_approval/hooks.py b/document_page_approval/hooks.py
index d0b780a2627..5eb8761b298 100644
--- a/document_page_approval/hooks.py
+++ b/document_page_approval/hooks.py
@@ -5,10 +5,10 @@
_logger = logging.getLogger(__name__)
-def post_init_hook(cr, registry): # pragma: no cover
+def post_init_hook(env): # pragma: no cover
# Set all pre-existing pages history to approved
_logger.info("Setting history to approved.")
- cr.execute(
+ env.cr.execute(
"""
UPDATE document_page_history
SET state='approved',
@@ -19,7 +19,7 @@ def post_init_hook(cr, registry): # pragma: no cover
)
-def uninstall_hook(cr, registry): # pragma: no cover
+def uninstall_hook(env): # pragma: no cover
# Remove unapproved pages
_logger.info("Deleting unapproved Change Requests.")
- cr.execute("DELETE FROM document_page_history WHERE state != 'approved'")
+ env.cr.execute("DELETE FROM document_page_history WHERE state != 'approved'")
diff --git a/document_page_approval/views/document_page_approval.xml b/document_page_approval/views/document_page_approval.xml
index 5445e490c31..5a6207d9d73 100644
--- a/document_page_approval/views/document_page_approval.xml
+++ b/document_page_approval/views/document_page_approval.xml
@@ -14,7 +14,7 @@
type="object"
string="Send to Review"
class="oe_highlight"
- attrs="{'invisible':['|','|',('is_approval_required','=',False),('am_i_owner','=',False),('state', 'not in', ['draft'])]}"
+ invisible="is_approval_required == False or am_i_owner == False or state not in ['draft']"
/>
@@ -68,35 +68,27 @@
- {'readonly': [('state', 'not in', ['draft'])]}
+ state not in ['draft']
- {'readonly': [('state', 'not in', ['draft'])]}
+ state not in ['draft']
- {'readonly': [('state', 'not in', ['draft'])]}
+ state not in ['draft']
- {'readonly': [('state', 'not in', ['draft'])]}
+ state not in ['draft']
@@ -119,14 +111,14 @@
position="attributes"
groups="document_page.group_document_manager"
>
- {'readonly': False}
+ False
- {'readonly': False}
+ False
@@ -141,7 +133,7 @@
class="alert alert-info"
role="alert"
style="margin-bottom:0px;"
- attrs="{'invisible': [('has_changes_pending_approval','=',False)]}"
+ invisible="has_changes_pending_approval == False"
>
This document has
Changes Pending Approval. You are viewing the last approved content.
@@ -150,7 +142,7 @@
class="alert alert-warning oe_edit_only"
role="alert"
style="margin-bottom:0px;"
- attrs="{'invisible': [('is_approval_required','=',False)]}"
+ invisible="is_approval_required == False"
>
This document requires approval. If edited, you will create a new
Change Request.
@@ -159,7 +151,7 @@
class="alert alert-warning oe_edit_only"
role="alert"
style="margin-bottom:0px;"
- attrs="{'invisible': [('user_has_drafts','=',False)]}"
+ invisible="user_has_drafts == False"
>
You already have a Draft Change Request for this page.
It is highly recommended that you edit that one instead of creating a new one.
@@ -174,7 +166,7 @@
name="action_changes_pending_approval"
string="Change Requests"
type="object"
- attrs="{'invisible':[('has_changes_pending_approval','=',False),('user_has_drafts','=',False)]}"
+ invisible="has_changes_pending_approval == False and user_has_drafts == False"
icon="fa-edit"
/>
@@ -207,7 +199,7 @@
@@ -225,7 +217,8 @@
diff --git a/document_page_group/__manifest__.py b/document_page_group/__manifest__.py
index e3263c6cba7..c352dcf0961 100644
--- a/document_page_group/__manifest__.py
+++ b/document_page_group/__manifest__.py
@@ -5,7 +5,7 @@
"name": "Document Page Group",
"summary": """
Define access groups on documents""",
- "version": "16.0.1.0.1",
+ "version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/knowledge",
diff --git a/document_page_reference/__manifest__.py b/document_page_reference/__manifest__.py
index 2c6b56fd3d4..c6915b46342 100644
--- a/document_page_reference/__manifest__.py
+++ b/document_page_reference/__manifest__.py
@@ -4,8 +4,9 @@
{
"name": "Document Page Reference",
"summary": """
- Include references on document pages""",
- "version": "16.0.1.0.1",
+ Include references on document pages
+ """,
+ "version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/knowledge",
diff --git a/document_page_tag/__manifest__.py b/document_page_tag/__manifest__.py
index f96b7f8e1d5..e47559a75ab 100644
--- a/document_page_tag/__manifest__.py
+++ b/document_page_tag/__manifest__.py
@@ -2,7 +2,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Document Page Tag",
- "version": "16.0.1.0.0",
+ "version": "17.0.1.0.0",
"author": "Therp BV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/knowledge",
"license": "AGPL-3",
diff --git a/document_url/__manifest__.py b/document_url/__manifest__.py
index fbfa0f38ab0..1515cfd3223 100644
--- a/document_url/__manifest__.py
+++ b/document_url/__manifest__.py
@@ -2,7 +2,7 @@
# Copyright 2020 Tecnativa - Manuel Calero
{
"name": "URL attachment",
- "version": "16.0.1.0.3",
+ "version": "17.0.1.0.3",
"category": "Tools",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/knowledge",