Skip to content

Commit f622c79

Browse files
committed
[19.0][MIG] purchase_tag: Migration to 19.0
1 parent b391f21 commit f622c79

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

purchase_tag/README.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Purchase Tags
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%2Fpurchase--workflow-lightgray.png?logo=github
24-
:target: https://github.com/OCA/purchase-workflow/tree/18.0/purchase_tag
24+
:target: https://github.com/OCA/purchase-workflow/tree/19.0/purchase_tag
2525
:alt: OCA/purchase-workflow
2626
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_tag
27+
:target: https://translation.odoo-community.org/projects/purchase-workflow-19-0/purchase-workflow-19-0-purchase_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/purchase-workflow&target_branch=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-workflow&target_branch=19.0
3131
:alt: Try me on Runboat
3232

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

5555
Do not contact contributors directly about support or help with technical issues.
5656

@@ -66,6 +66,7 @@ Contributors
6666
------------
6767

6868
- Jasmin Solanki <[email protected]>
69+
- Hudson Amadeus Leonardy <https://solusiaglis.co.id>
6970

7071
Maintainers
7172
-----------
@@ -80,6 +81,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
8081
mission is to support the collaborative development of Odoo features and
8182
promote its widespread use.
8283

83-
This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/18.0/purchase_tag>`_ project on GitHub.
84+
This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/19.0/purchase_tag>`_ project on GitHub.
8485

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

purchase_tag/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"name": "Purchase Tags",
77
"summary": "Allows to add multiple tags to purchase orders",
8-
"version": "18.0.1.0.0",
8+
"version": "19.0.1.0.0",
99
"author": "ForgeFlow, Odoo Community Association (OCA)",
1010
"website": "https://github.com/OCA/purchase-workflow",
1111
"category": "Purchases",

purchase_tag/models/purchase_tag.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ def _get_default_color(self):
2121
child_ids = fields.One2many("purchase.tag", "parent_id")
2222
parent_path = fields.Char(index=True)
2323

24-
_sql_constraints = [
25-
("tag_name_uniq", "unique (name)", "Tag name already exists !"),
26-
]
24+
_name_uniq = models.Constraint(
25+
"unique (name)",
26+
message="Tag name already exists !",
27+
)
2728

2829
def _compute_display_name(self):
2930
for tag in self:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
- Jasmin Solanki \<<[email protected]>\>
2+
- Hudson Amadeus Leonardy \<<https://solusiaglis.co.id>\>

purchase_tag/static/description/index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ <h1>Purchase Tags</h1>
374374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375375
!! source digest: sha256:94e58d12401c413cdb838f0cb90dea8711658fc48dc05a9f03dd376ba93af078
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/purchase-workflow/tree/18.0/purchase_tag"><img alt="OCA/purchase-workflow" src="https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_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/purchase-workflow&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/purchase-workflow/tree/19.0/purchase_tag"><img alt="OCA/purchase-workflow" src="https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/purchase-workflow-19-0/purchase-workflow-19-0-purchase_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/purchase-workflow&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 to add multiple tags to purchase orders</p>
379379
<p><strong>Table of contents</strong></p>
380380
<div class="contents local topic" id="contents">
@@ -398,7 +398,7 @@ <h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
398398
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/purchase-workflow/issues">GitHub Issues</a>.
399399
In case of trouble, please check there if your issue has already been reported.
400400
If you spotted it first, help us to smash it by providing a detailed and welcomed
401-
<a class="reference external" href="https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_tag%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
401+
<a class="reference external" href="https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_tag%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
402402
<p>Do not contact contributors directly about support or help with technical issues.</p>
403403
</div>
404404
<div class="section" id="credits">
@@ -413,6 +413,7 @@ <h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
413413
<h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
414414
<ul class="simple">
415415
<li>Jasmin Solanki &lt;<a class="reference external" href="mailto:jasmin.solanki&#64;forgeflow.com">jasmin.solanki&#64;forgeflow.com</a>&gt;</li>
416+
<li>Hudson Amadeus Leonardy &lt;<a class="reference external" href="https://solusiaglis.co.id">https://solusiaglis.co.id</a>&gt;</li>
416417
</ul>
417418
</div>
418419
<div class="section" id="maintainers">
@@ -424,7 +425,7 @@ <h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
424425
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
425426
mission is to support the collaborative development of Odoo features and
426427
promote its widespread use.</p>
427-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/purchase-workflow/tree/18.0/purchase_tag">OCA/purchase-workflow</a> project on GitHub.</p>
428+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/purchase-workflow/tree/19.0/purchase_tag">OCA/purchase-workflow</a> project on GitHub.</p>
428429
<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>
429430
</div>
430431
</div>

0 commit comments

Comments
 (0)