Skip to content

Commit d07f7e2

Browse files
BhaveshHeliconiahspl-parbo
authored andcommitted
[MIG] document_page_tag: Migration to 19.0
1 parent 31665a4 commit d07f7e2

5 files changed

Lines changed: 16 additions & 14 deletions

File tree

document_page_tag/README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Document Page Tag
2121
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2222
:alt: License: AGPL-3
2323
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github
24-
:target: https://github.com/OCA/knowledge/tree/18.0/document_page_tag
24+
:target: https://github.com/OCA/knowledge/tree/19.0/document_page_tag
2525
:alt: OCA/knowledge
2626
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page_tag
27+
:target: https://translation.odoo-community.org/projects/knowledge-19-0/knowledge-19-0-document_page_tag
2828
:alt: Translate me on Weblate
2929
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30-
:target: https://runboat.odoo-community.org/builds?repo=OCA/knowledge&target_branch=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/knowledge&target_branch=19.0
3131
:alt: Try me on Runboat
3232

3333
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -63,7 +63,7 @@ Bug Tracker
6363
Bugs are tracked on `GitHub Issues <https://github.com/OCA/knowledge/issues>`_.
6464
In case of trouble, please check there if your issue has already been reported.
6565
If you spotted it first, help us to smash it by providing a detailed and welcomed
66-
`feedback <https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_tag%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
66+
`feedback <https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_tag%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6767

6868
Do not contact contributors directly about support or help with technical issues.
6969

@@ -100,6 +100,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
100100
mission is to support the collaborative development of Odoo features and
101101
promote its widespread use.
102102

103-
This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/18.0/document_page_tag>`_ project on GitHub.
103+
This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/19.0/document_page_tag>`_ project on GitHub.
104104

105105
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

document_page_tag/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
33
{
44
"name": "Document Page Tag",
5-
"version": "18.0.1.0.0",
5+
"version": "19.0.1.0.0",
66
"author": "Therp BV,Odoo Community Association (OCA)",
77
"website": "https://github.com/OCA/knowledge",
88
"license": "AGPL-3",

document_page_tag/models/document_page_tag.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ class DocumentPageTag(models.Model):
1111
color = fields.Integer(string="Color Index")
1212
active = fields.Boolean(default=True)
1313

14-
_sql_constraints = [
15-
("unique_name", "unique(name)", "Tags must be unique"),
16-
]
14+
_unique_name = models.Constraint(
15+
"UNIQUE (name)",
16+
"Tags must be unique",
17+
)
1718

1819
@api.model_create_multi
1920
def create(self, vals_list):

document_page_tag/static/description/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ <h1>Document Page Tag</h1>
374374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375375
!! source digest: sha256:43b4f0b76b5d14f9112925c6592ae38a2ff2248088fd38b196ac3978cc9cea41
376376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/knowledge/tree/18.0/document_page_tag"><img alt="OCA/knowledge" src="https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page_tag"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/knowledge&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/knowledge/tree/19.0/document_page_tag"><img alt="OCA/knowledge" src="https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/knowledge-19-0/knowledge-19-0-document_page_tag"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/knowledge&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378378
<p>This module allows you to fill in keywords on your pages to simplify
379379
finding them afterwards.</p>
380380
<p><strong>Table of contents</strong></p>
@@ -411,7 +411,7 @@ <h2><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h2>
411411
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/knowledge/issues">GitHub Issues</a>.
412412
In case of trouble, please check there if your issue has already been reported.
413413
If you spotted it first, help us to smash it by providing a detailed and welcomed
414-
<a class="reference external" href="https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_tag%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
414+
<a class="reference external" href="https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_tag%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
415415
<p>Do not contact contributors directly about support or help with technical issues.</p>
416416
</div>
417417
<div class="section" id="credits">
@@ -445,7 +445,7 @@ <h3><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h3>
445445
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
446446
mission is to support the collaborative development of Odoo features and
447447
promote its widespread use.</p>
448-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/knowledge/tree/18.0/document_page_tag">OCA/knowledge</a> project on GitHub.</p>
448+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/knowledge/tree/19.0/document_page_tag">OCA/knowledge</a> project on GitHub.</p>
449449
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
450450
</div>
451451
</div>

document_page_tag/tests/test_document_page_tag.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
33
from psycopg2 import IntegrityError
44

5-
from odoo.tests.common import TransactionCase
65
from odoo.tools.misc import mute_logger
76

7+
from odoo.addons.base.tests.common import BaseCommon
88

9-
class TestDocumentPageTag(TransactionCase):
9+
10+
class TestDocumentPageTag(BaseCommon):
1011
def test_document_page_tag(self):
1112
testtag = self.env["document.page.tag"].name_create("test")
1213
# check we're charitable on duplicates

0 commit comments

Comments
 (0)