From d9f88154e36fb64f591e053195cc405ce140c237 Mon Sep 17 00:00:00 2001
From: FernandoRomera
Date: Thu, 8 Dec 2022 09:20:13 +0100
Subject: [PATCH] [16.0][MIG] document_page_tag: Migration to 16.0
---
document_page_tag/README.rst | 10 +++++-----
document_page_tag/__manifest__.py | 2 +-
document_page_tag/i18n/document_page_tag.pot | 2 +-
document_page_tag/models/document_page_tag.py | 2 +-
document_page_tag/security/ir.model.access.csv | 2 +-
document_page_tag/static/description/index.html | 6 +++---
document_page_tag/tests/test_document_page_tag.py | 2 +-
document_page_tag/views/document_page_tag.xml | 3 ++-
8 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/document_page_tag/README.rst b/document_page_tag/README.rst
index 6678795e..9544d4e1 100644
--- a/document_page_tag/README.rst
+++ b/document_page_tag/README.rst
@@ -14,13 +14,13 @@ Document Page Tag
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github
- :target: https://github.com/OCA/knowledge/tree/15.0/document_page_tag
+ :target: https://github.com/OCA/knowledge/tree/16.0/document_page_tag
:alt: OCA/knowledge
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/knowledge-15-0/knowledge-15-0-document_page_tag
+ :target: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_tag
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/118/15.0
+ :target: https://runbot.odoo-community.org/runbot/118/16.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -55,7 +55,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -88,6 +88,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-This module is part of the `OCA/knowledge `_ project on GitHub.
+This module is part of the `OCA/knowledge `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/document_page_tag/__manifest__.py b/document_page_tag/__manifest__.py
index cf7d9ad5..f96b7f8e 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": "15.0.1.2.0",
+ "version": "16.0.1.0.0",
"author": "Therp BV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/knowledge",
"license": "AGPL-3",
diff --git a/document_page_tag/i18n/document_page_tag.pot b/document_page_tag/i18n/document_page_tag.pot
index bc7174de..7785e864 100644
--- a/document_page_tag/i18n/document_page_tag.pot
+++ b/document_page_tag/i18n/document_page_tag.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 15.0\n"
+"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
diff --git a/document_page_tag/models/document_page_tag.py b/document_page_tag/models/document_page_tag.py
index 7dc70ce6..cb5bf89b 100644
--- a/document_page_tag/models/document_page_tag.py
+++ b/document_page_tag/models/document_page_tag.py
@@ -21,4 +21,4 @@ class DocumentPageTag(models.Model):
existing = self.search([("name", "=ilike", vals["name"])], limit=1)
if existing:
return existing
- return super(DocumentPageTag, self).create(vals)
+ return super().create(vals)
diff --git a/document_page_tag/security/ir.model.access.csv b/document_page_tag/security/ir.model.access.csv
index c426dec3..5ab61cf8 100644
--- a/document_page_tag/security/ir.model.access.csv
+++ b/document_page_tag/security/ir.model.access.csv
@@ -1,4 +1,4 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
-document_page_user,document.page user,model_document_page_tag,knowledge.group_document_user,1,0,0,0
+document_page_user,document.page user,model_document_page_tag,document_knowledge.group_document_user,1,0,0,0
document_page_editor,document.page editor,model_document_page_tag,document_page.group_document_editor,1,1,1,0
document_page_manager,document.page manager,model_document_page_tag,document_page.group_document_manager,1,1,1,1
diff --git a/document_page_tag/static/description/index.html b/document_page_tag/static/description/index.html
index 9e4abd00..b70e68ae 100644
--- a/document_page_tag/static/description/index.html
+++ b/document_page_tag/static/description/index.html
@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

This module allows you to fill in keywords on your pages to simplify finding
them afterwards.
Table of contents
@@ -403,7 +403,7 @@ choose searching for keywords.
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-feedback.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -430,7 +430,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-
This module is part of the OCA/knowledge project on GitHub.
+
This module is part of the OCA/knowledge project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/document_page_tag/tests/test_document_page_tag.py b/document_page_tag/tests/test_document_page_tag.py
index 66a83bfd..30d0d8fd 100644
--- a/document_page_tag/tests/test_document_page_tag.py
+++ b/document_page_tag/tests/test_document_page_tag.py
@@ -19,4 +19,4 @@ class TestDocumentPageTag(TransactionCase):
with mute_logger("odoo.sql_db"):
testtag2 = self.env["document.page.tag"].create({"name": "test2"})
testtag2.write({"name": "test"})
- testtag2.flush()
+ testtag2.flush_model()
diff --git a/document_page_tag/views/document_page_tag.xml b/document_page_tag/views/document_page_tag.xml
index 49f7c3d7..80a37895 100644
--- a/document_page_tag/views/document_page_tag.xml
+++ b/document_page_tag/views/document_page_tag.xml
@@ -1,3 +1,4 @@
+
@@ -66,7 +67,7 @@