Skip to content

Commit 3b8396a

Browse files
[MIG] partner_supplier_ref_sequence: Migration to 19.0
1 parent 0ef5983 commit 3b8396a

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

partner_supplier_ref_sequence/README.rst

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

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

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

@@ -81,6 +81,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
8181
mission is to support the collaborative development of Odoo features and
8282
promote its widespread use.
8383

84-
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/18.0/partner_supplier_ref_sequence>`_ project on GitHub.
84+
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/19.0/partner_supplier_ref_sequence>`_ project on GitHub.
8585

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

partner_supplier_ref_sequence/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"name": "Partner Supplier Reference Sequence",
66
"summary": "Adds a sequence for the Supplier Reference field",
7-
"version": "18.0.1.0.0",
7+
"version": "19.0.1.0.0",
88
"category": "Customer Relationship Management",
99
"website": "https://github.com/OCA/partner-contact",
1010
"author": "ForgeFlow, Odoo Community Association (OCA)",

partner_supplier_ref_sequence/models/res_partner.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright 2025 ForgeFlow S.L. (https://www.forgeflow.com)
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
33

4-
from odoo import _, api, fields, models
4+
from odoo import api, fields, models
55
from odoo.exceptions import UserError
66

77

@@ -15,7 +15,9 @@ def _get_next_supplier_ref(self, vals=None):
1515

1616
def _needs_supplier_ref(self, vals=None):
1717
if not vals and not self:
18-
raise UserError(_("Either field values or an id must be provided."))
18+
raise UserError(
19+
self.env._("Either field values or an id must be provided.")
20+
)
1921
fields_for_check = [
2022
"is_company",
2123
"parent_id",

partner_supplier_ref_sequence/static/description/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ <h1>Partner Supplier Reference Sequence</h1>
374374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375375
!! source digest: sha256:7681ee0cbe1973ffe313b1d2de780a0efd5192e7ef3a4657b435128dbc64a54f
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/partner-contact/tree/18.0/partner_supplier_ref_sequence"><img alt="OCA/partner-contact" src="https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/partner-contact-18-0/partner-contact-18-0-partner_supplier_ref_sequence"><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/partner-contact&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/partner-contact/tree/19.0/partner_supplier_ref_sequence"><img alt="OCA/partner-contact" src="https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/partner-contact-19-0/partner-contact-19-0-partner_supplier_ref_sequence"><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/partner-contact&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 adds the possibility to define a sequence for the partner’s
379379
supplier reference. Then when creating a new partner, if the partner is
380380
a supplier, the supplier reference will be automatically set using this
@@ -398,7 +398,7 @@ <h2><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h2>
398398
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/partner-contact/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/partner-contact/issues/new?body=module:%20partner_supplier_ref_sequence%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/partner-contact/issues/new?body=module:%20partner_supplier_ref_sequence%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">
@@ -424,7 +424,7 @@ <h3><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h3>
424424
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
425425
mission is to support the collaborative development of Odoo features and
426426
promote its widespread use.</p>
427-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/partner-contact/tree/18.0/partner_supplier_ref_sequence">OCA/partner-contact</a> project on GitHub.</p>
427+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/partner-contact/tree/19.0/partner_supplier_ref_sequence">OCA/partner-contact</a> project on GitHub.</p>
428428
<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>
429429
</div>
430430
</div>

0 commit comments

Comments
 (0)