From df46d1bc64ee9aca23b179df7e62bccae3fb53ff Mon Sep 17 00:00:00 2001 From: manu Date: Mon, 7 Mar 2022 13:45:59 +0100 Subject: [PATCH] [MIG]document_page_tag: Migration to 13.0 --- document_page_tag/__manifest__.py | 4 ++-- document_page_tag/readme/CONTRIBUTORS.rst | 1 + .../tests/test_document_page_tag.py | 3 ++- document_page_tag/views/document_page_tag.xml | 24 +++++++------------ 4 files changed, 14 insertions(+), 18 deletions(-) diff --git a/document_page_tag/__manifest__.py b/document_page_tag/__manifest__.py index 10c9c1f6..0510a81a 100644 --- a/document_page_tag/__manifest__.py +++ b/document_page_tag/__manifest__.py @@ -2,14 +2,14 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Document Page Tag", - "version": "12.0.1.0.0", + "version": "13.0.1.0.0", "author": "Therp BV,Odoo Community Association (OCA)", "website": "https://github.com/OCA/knowledge", "license": "AGPL-3", "category": "Knowledge Management", "summary": "Allows you to assign tags or keywords to pages and search for " "them afterwards", - "depends": ["document_page",], + "depends": ["document_page"], "data": [ "views/document_page_tag.xml", "views/document_page.xml", diff --git a/document_page_tag/readme/CONTRIBUTORS.rst b/document_page_tag/readme/CONTRIBUTORS.rst index 665c3d97..352d8eb9 100644 --- a/document_page_tag/readme/CONTRIBUTORS.rst +++ b/document_page_tag/readme/CONTRIBUTORS.rst @@ -1,2 +1,3 @@ * Holger Brunn * Marcel Savegnago +* Manuel Regidor diff --git a/document_page_tag/tests/test_document_page_tag.py b/document_page_tag/tests/test_document_page_tag.py index 34e10a67..6c95ecff 100644 --- a/document_page_tag/tests/test_document_page_tag.py +++ b/document_page_tag/tests/test_document_page_tag.py @@ -16,5 +16,6 @@ class TestDocumentPageTag(TransactionCase): # check we can't create nonunique tags with self.assertRaises(IntegrityError): with mute_logger("odoo.sql_db"): - testtag2 = self.env["document.page.tag"].create({"name": "test2",}) + testtag2 = self.env["document.page.tag"].create({"name": "test2"}) testtag2.write({"name": "test"}) + testtag2.flush() diff --git a/document_page_tag/views/document_page_tag.xml b/document_page_tag/views/document_page_tag.xml index 936fdb01..58536cc2 100644 --- a/document_page_tag/views/document_page_tag.xml +++ b/document_page_tag/views/document_page_tag.xml @@ -22,20 +22,15 @@
-
- -
+ + + +