Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] base_partner_sequence: Migration to 18.0 #1863

Merged
merged 70 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
1b29348
base_partner_sequence: from lp:openobject-addons/extra-trunk to OpenE…
Nov 13, 2013
35aa717
Adapt to commercial partners [FIX] Replacd call to deprecated method
Nov 19, 2013
c83698e
base_partner_sequence: shortened long lines + bug in copy
Nov 26, 2013
61795c9
Fix pep8
Jul 18, 2014
e9a5612
Do no longer set the 'ref' field readonly
guewen Apr 30, 2015
978a576
OCA Transbot updated translations from Transifex
oca-transbot Sep 1, 2015
d54ca0f
base_partner_sequence Structure + new API
lmignon Oct 28, 2015
68c802b
base_partner_sequence module
cubells Dec 16, 2016
6b96d3c
base_partner_sequence: Migration to 10.0
grindtildeath Dec 19, 2016
8191f3a
fix sequence increase on 'partner.write()'
leemannd Mar 8, 2017
a05fbc4
re-introduce _get_next_ref method to allow overriding (#417)
May 29, 2017
93c953b
OCA Transbot updated translations from Transifex
oca-transbot Jan 30, 2016
b3949ed
migration of base_partner_sequence
jesusVMayor Dec 13, 2017
4294e98
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
7bdfcd5
Update base_partner_sequence.pot
oca-travis Jun 22, 2018
2b7b41b
Fix issue during write on base_partner_sequence
acsonefho Nov 12, 2018
3ca6e34
Translated using Weblate (Dutch)
Nov 14, 2018
200ca0a
Base Partner Sequence: Migration to 12.0
qgroulard Dec 10, 2018
3cba0fd
README.rst
OCA-git-bot Dec 15, 2018
5e25c66
Update base_partner_sequence.pot
oca-travis Dec 15, 2018
0537f9c
- unique ref on write
sbejaoui Jan 9, 2019
c3ccd5b
Translated using Weblate (Galician)
mvrodriguez Feb 11, 2019
8e94e33
Update base_partner_sequence.pot
oca-travis May 8, 2019
bd3bd59
Update translation files
oca-transbot May 20, 2019
e91bae1
base_partner_reference: Pylint errors
max3903 Jul 20, 2019
d325a5f
README.rst
OCA-git-bot Jul 29, 2019
27ab155
base_partner_sequence: Fix development status
pedrobaeza Aug 21, 2019
f37aed2
Translated using Weblate (Portuguese (Brazil))
Sep 9, 2019
38de22f
Translated using Weblate (Croatian)
badbole Nov 18, 2019
981f10c
base_partner_sequence: black, isort
kevinkhao Nov 19, 2019
474bccb
base_partner_sequence: Migration to 13.0
kevinkhao Nov 20, 2019
bbdecc2
Update base_partner_sequence.pot
oca-travis Nov 28, 2019
c6488e0
Update translation files
oca-transbot Dec 2, 2019
7ece24e
pre-commit update
OCA-git-bot Mar 14, 2020
0822c2c
Translated using Weblate (Chinese (Simplified))
dong-z Mar 21, 2020
8b627d7
base_partner_sequence: remove import statements for tests
skeller1 Apr 28, 2020
91b5a50
base_partner_sequence 13.0.1.0.1
OCA-git-bot Apr 29, 2020
b10a05c
base_partner_sequence: Migration to 14.0
mostafaala2 Mar 10, 2021
8f27729
Update base_partner_sequence.pot
oca-travis Mar 11, 2021
644f31d
README.rst
OCA-git-bot Mar 11, 2021
bde3071
base_partner_sequence 14.0.1.0.1
OCA-git-bot Mar 11, 2021
74254bf
Update translation files
oca-transbot Mar 11, 2021
05b3663
black, isort, prettier
OpenCode Nov 9, 2021
7d6ff74
base_partner_sequence: Migration to 15.0
OpenCode Nov 9, 2021
26895db
Update base_partner_sequence.pot
Mar 21, 2022
13c97d7
README.rst
OCA-git-bot Mar 21, 2022
528186e
base_partner_sequence 15.0.1.0.2
OCA-git-bot Mar 21, 2022
e9412c7
Translated using Weblate (Catalan)
pablontura Apr 22, 2022
6ac1d49
[ADD] base_partner_sequence: Migrated to v16
Nikul-OSI Jan 18, 2023
5fda731
[UPD] Update base_partner_sequence.pot
Feb 2, 2023
f2a2d0f
[UPD] README.rst
OCA-git-bot Feb 2, 2023
723b05f
Update translation files
weblate Feb 2, 2023
df66a07
[UPD] README.rst
OCA-git-bot Sep 3, 2023
c0edba7
[FIX] base_partner_sequence: consider written values in _needs_ref check
JordiMForgeFlow Oct 20, 2023
6798d4e
[BOT] post-merge updates
OCA-git-bot Nov 17, 2023
1a88acb
Translated using Weblate (Italian)
mymage Dec 27, 2023
2facbe3
[MIG] base_partner_sequence: Migration to 17.0
FSchiepers Mar 1, 2024
5622c80
Update partner_view.xml
FSchiepers Apr 8, 2024
e86df0c
Update partner.py
FSchiepers Apr 8, 2024
4a74017
Update test_base_partner_sequence.py
FSchiepers Apr 8, 2024
b7c7869
[UPD] Update base_partner_sequence.pot
May 3, 2024
2bb4f25
[BOT] post-merge updates
OCA-git-bot May 3, 2024
4a24330
[IMP] partner_display_name_line_break: pre-commit auto fixes
trisdoan May 24, 2024
6685ab3
[BOT] post-merge updates
OCA-git-bot May 31, 2024
09eb368
Translated using Weblate (Swedish)
jakobkrabbe Jun 5, 2024
7ab265f
Translated using Weblate (German)
NICO-SOLUTIONS Jul 18, 2024
0dd92a7
[IMP] partner_contact_role: pre-commit execution
jdidderen-nsi Aug 7, 2024
b8f6bb9
[IMP] base_partner_sequence: pre-commit auto fixes
Kimkhoi3010 Oct 11, 2024
c741ee4
oca-port: blacklist PR(s) 1075, 1451 for base_partner_sequence
Kimkhoi3010 Oct 14, 2024
0a600b0
[MIG] base_partner_sequence: Migration to 18.0
Kimkhoi3010 Oct 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .oca/oca-port/blacklist/base_partner_sequence.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pull_requests": {
"1075": "Nothing to port",
"1451": "Nothing to port"
}
}
112 changes: 112 additions & 0 deletions base_partner_sequence/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
=================================
Add a sequence on customers' code
=================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:6353a32462ea4d44f94eed65ea040150024901f1848d89063d5da5e82db54238
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github
:target: https://github.com/OCA/partner-contact/tree/18.0/base_partner_sequence
:alt: OCA/partner-contact
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/partner-contact-18-0/partner-contact-18-0-base_partner_sequence
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds the possibility to define a sequence for the partner's
reference. This reference is then set as default when you create a new
partner, using the defined sequence.

The reference field is treated as a commercial field, i.e. it is managed
from the commercial partner and then propagated to the partner's
contacts. The field is visible on the contacts, but it can only be
modified from the commercial partner.

No references are assigned for contacts such as shipping and invoice
addresses.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20base_partner_sequence%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Tiny/initOS GmbH & Co. KG
* ACSONE SA/NV
* Tecnativa
* Camptocamp

Contributors
------------

- Thomas Rehn <[email protected]>
- Stefan Rijnhart <[email protected]>
- Yannick Vaucher <[email protected]>
- Sandy Carter <[email protected]>
- Laurent Mignon (ACSONE) <[email protected]>
- Guewen Baconnier <[email protected]>
- Alexandre Fayolle <[email protected]>
- Vicent Cubells <[email protected]>
- Akim Juillerat <[email protected]>
- Cas Vissers <[email protected]>
- Quentin Groulard <[email protected]>
- Kevin Khao <[email protected]>
- Francesco Apruzzese <[email protected]>
- Daniel Reis <[email protected]>
- Nikul Chaudhary <[email protected]>
- Khoi (Kien Kim) <[email protected]>

Other credits
-------------

The migration of this module from 17.0 to 18.0 was financially supported
by:

- Camptocamp

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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/partner-contact <https://github.com/OCA/partner-contact/tree/18.0/base_partner_sequence>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions base_partner_sequence/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import models
24 changes: 24 additions & 0 deletions base_partner_sequence/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2004-2009 Tiny SPRL (<https://tiny.be>).
# Copyright 2013 initOS GmbH & Co. KG (<https://www.initos.com>).
# Copyright 2016 Tecnativa - Vicent Cubells
# Copyright 2016 Camptocamp - Akim Juillerat (<https://www.camptocamp.com>).
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"author": (
"Tiny/initOS GmbH & Co. KG,"
"ACSONE SA/NV,"
"Tecnativa,"
"Camptocamp,"
"Odoo Community Association (OCA)"
),
"name": "Add a sequence on customers' code",
"version": "18.0.1.0.0",
"development_status": "Production/Stable",
"category": "Generic Modules/Base",
"website": "https://github.com/OCA/partner-contact",
"depends": ["base"],
"summary": "Sets customer's code from a sequence",
"data": ["data/partner_sequence.xml", "views/partner_view.xml"],
"installable": True,
"license": "AGPL-3",
}
9 changes: 9 additions & 0 deletions base_partner_sequence/data/partner_sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" ?>
<odoo noupdate="1">
<record id="seq_res_partner" model="ir.sequence">
<field name="name">Partner code</field>
<field name="code">res.partner</field>
<field name="prefix">P/</field>
<field name="padding">5</field>
</record>
</odoo>
34 changes: 34 additions & 0 deletions base_partner_sequence/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_partner_sequence
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-10 03:39+0000\n"
"PO-Revision-Date: 2017-03-10 03:39+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n"
"Language: am\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: base_partner_sequence
#: model:ir.model,name:base_partner_sequence.model_res_partner
msgid "Contact"
msgstr ""

#. module: base_partner_sequence
#. odoo-python
#: code:addons/base_partner_sequence/models/partner.py:0
#, python-format
msgid "Either field values or an id must be provided."
msgstr ""

#~ msgid "Partner"
#~ msgstr "ተባባሪ"
35 changes: 35 additions & 0 deletions base_partner_sequence/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_partner_sequence
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-10 03:39+0000\n"
"PO-Revision-Date: 2017-03-10 03:39+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: base_partner_sequence
#: model:ir.model,name:base_partner_sequence.model_res_partner
msgid "Contact"
msgstr ""

#. module: base_partner_sequence
#. odoo-python
#: code:addons/base_partner_sequence/models/partner.py:0
#, python-format
msgid "Either field values or an id must be provided."
msgstr ""

#~ msgid "Partner"
#~ msgstr "الشريك"
26 changes: 26 additions & 0 deletions base_partner_sequence/i18n/base_partner_sequence.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_partner_sequence
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: base_partner_sequence
#: model:ir.model,name:base_partner_sequence.model_res_partner
msgid "Contact"
msgstr ""

#. module: base_partner_sequence
#. odoo-python
#: code:addons/base_partner_sequence/models/partner.py:0
#, python-format
msgid "Either field values or an id must be provided."
msgstr ""
34 changes: 34 additions & 0 deletions base_partner_sequence/i18n/bg.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_partner_sequence
#
# Translators:
# OCA Transbot <[email protected]>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-31 01:39+0000\n"
"PO-Revision-Date: 2016-12-31 01:39+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2016\n"
"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n"
"Language: bg\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: base_partner_sequence
#: model:ir.model,name:base_partner_sequence.model_res_partner
msgid "Contact"
msgstr ""

#. module: base_partner_sequence
#. odoo-python
#: code:addons/base_partner_sequence/models/partner.py:0
#, python-format
msgid "Either field values or an id must be provided."
msgstr ""

#~ msgid "Partner"
#~ msgstr "Партньор"
35 changes: 35 additions & 0 deletions base_partner_sequence/i18n/bs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_partner_sequence
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-10 03:39+0000\n"
"PO-Revision-Date: 2017-03-10 03:39+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n"
"Language: bs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

#. module: base_partner_sequence
#: model:ir.model,name:base_partner_sequence.model_res_partner
msgid "Contact"
msgstr ""

#. module: base_partner_sequence
#. odoo-python
#: code:addons/base_partner_sequence/models/partner.py:0
#, python-format
msgid "Either field values or an id must be provided."
msgstr ""

#~ msgid "Partner"
#~ msgstr "Partner"
35 changes: 35 additions & 0 deletions base_partner_sequence/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_partner_sequence
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-10 03:39+0000\n"
"PO-Revision-Date: 2022-04-22 12:05+0000\n"
"Last-Translator: pablontura <[email protected]>\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: base_partner_sequence
#: model:ir.model,name:base_partner_sequence.model_res_partner
msgid "Contact"
msgstr "Contacte"

#. module: base_partner_sequence
#. odoo-python
#: code:addons/base_partner_sequence/models/partner.py:0
#, python-format
msgid "Either field values or an id must be provided."
msgstr "S'han de proporcionar els valors del camp o un identificador."

#~ msgid "Partner"
#~ msgstr "Empresa"
34 changes: 34 additions & 0 deletions base_partner_sequence/i18n/cs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_partner_sequence
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-10 03:39+0000\n"
"PO-Revision-Date: 2017-03-10 03:39+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Czech (https://www.transifex.com/oca/teams/23907/cs/)\n"
"Language: cs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"

#. module: base_partner_sequence
#: model:ir.model,name:base_partner_sequence.model_res_partner
msgid "Contact"
msgstr ""

#. module: base_partner_sequence
#. odoo-python
#: code:addons/base_partner_sequence/models/partner.py:0
#, python-format
msgid "Either field values or an id must be provided."
msgstr ""

#~ msgid "Partner"
#~ msgstr "Společník"
Loading
Loading