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

14.0 mig base partner sequence #1075

Merged
merged 38 commits into from
Mar 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
6d46ef6
[MIG] base_partner_sequence: from lp:openobject-addons/extra-trunk to…
Nov 13, 2013
51ccfce
[IMP] Adapt to commercial partners
Nov 19, 2013
d5129d1
[FIX] base_partner_sequence: shortened long lines + bug in copy
Nov 26, 2013
a6d49fe
Fix pep8
Jul 18, 2014
8f1a0d2
Do no longer set the 'ref' field readonly
guewen Apr 30, 2015
34ede1e
OCA Transbot updated translations from Transifex
oca-transbot Sep 1, 2015
2e10e71
[IMP] base_partner_sequence Structure + new API
lmignon Oct 28, 2015
62071a2
base_partner_sequence module
cubells Dec 16, 2016
f3b915c
[MIG] base_partner_sequence: Migration to 10.0
grindtildeath Dec 19, 2016
9f5bb90
fix sequence increase on 'partner.write()'
leemannd Mar 8, 2017
15ae3bd
[CHG] re-introduce _get_next_ref method to allow overriding (#417)
May 29, 2017
602e398
OCA Transbot updated translations from Transifex
oca-transbot Jan 30, 2016
3a9afd0
[MIG]migration of base_partner_sequence
jesusVMayor Dec 13, 2017
475881e
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
efd9e0f
[UPD] Update base_partner_sequence.pot
oca-travis Jun 22, 2018
fe38a0e
[11.0][FIX] Fix issue during write on base_partner_sequence
acsonefho Nov 12, 2018
bdbb86a
Translated using Weblate (Dutch)
Nov 14, 2018
e57e359
[MIG] Base Partner Sequence: Migration to 12.0
qgroulard Dec 10, 2018
51cccf7
[UPD] README.rst
OCA-git-bot Dec 15, 2018
f74b1d3
[UPD] Update base_partner_sequence.pot
oca-travis Dec 15, 2018
a860d84
[FIX] - unique ref on write
sbejaoui Jan 9, 2019
ebb898b
Translated using Weblate (Galician)
mvrodriguez Feb 11, 2019
a585a88
[UPD] Update base_partner_sequence.pot
oca-travis May 8, 2019
4fde7b4
Update translation files
oca-transbot May 20, 2019
d49e4f5
[FIX] base_partner_reference: Pylint errors
max3903 Jul 20, 2019
9c3649c
[UPD] README.rst
OCA-git-bot Jul 29, 2019
07eb1a1
[FIX] base_partner_sequence: Fix development status
pedrobaeza Aug 21, 2019
3160ce6
Translated using Weblate (Portuguese (Brazil))
Sep 9, 2019
6c4e340
Translated using Weblate (Croatian)
badbole Nov 18, 2019
1792683
[IMP] base_partner_sequence: black, isort
kevinkhao Nov 19, 2019
959a3c8
[MIG] base_partner_sequence: Migration to 13.0
kevinkhao Nov 20, 2019
4c7f0b2
[UPD] Update base_partner_sequence.pot
oca-travis Nov 28, 2019
7b9dc86
Update translation files
oca-transbot Dec 2, 2019
45a4d4b
pre-commit update
OCA-git-bot Mar 14, 2020
5e39bc9
Translated using Weblate (Chinese (Simplified))
dong-z Mar 21, 2020
683a2b9
[FIX] base_partner_sequence: remove import statements for tests
skeller1 Apr 28, 2020
cc236ae
base_partner_sequence 13.0.1.0.1
OCA-git-bot Apr 29, 2020
99e7e2b
[MIG] base_partner_sequence: Migration to 14.0
mostafaala2 Mar 10, 2021
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
98 changes: 98 additions & 0 deletions base_partner_sequence/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
=================================
Add a sequence on customers' code
=================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/14.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-14-0/partner-contact-14-0-base_partner_sequence
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/134/14.0
:alt: Try me on Runbot

|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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20base_partner_sequence%0Aversion:%2013.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 <thomas.rehn@initos.com>
* Stefan Rijnhart <stefan@therp.nl>
* Yannick Vaucher <yannick.vaucher@camptocamp.com>
* Sandy Carter <sandy.carter@savoirfairelinux.com>
* Laurent Mignon (ACSONE) <laurent.mignon@acsone.eu>
* Guewen Baconnier <guewen.baconnier@camptocamp.com>
* Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
* Vicent Cubells <vicent.cubells@tecnativa.com>
* Akim Juillerat <akim.juillerat@camptocamp.com>
* Cas Vissers <c.vissers@brahoo.nl>
* Quentin Groulard <quentin.groulard@acsone.eu>
* Kevin Khao <kevinkhao@gmail.com>
* Mostafa Alaa <MostafaAlaaEldinMohamed@gmail.com>

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/14.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": "14.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>
33 changes: 33 additions & 0 deletions base_partner_sequence/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_partner_sequence
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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
#: 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 "ተባባሪ"
34 changes: 34 additions & 0 deletions base_partner_sequence/i18n/ar.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 <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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
#: 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 "الشريك"
25 changes: 25 additions & 0 deletions base_partner_sequence/i18n/base_partner_sequence.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_partner_sequence
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.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
#: code:addons/base_partner_sequence/models/partner.py:0
#, python-format
msgid "Either field values or an id must be provided."
msgstr ""
33 changes: 33 additions & 0 deletions base_partner_sequence/i18n/bg.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_partner_sequence
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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
#: 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 "Партньор"
34 changes: 34 additions & 0 deletions base_partner_sequence/i18n/bs.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 <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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
#: 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"
33 changes: 33 additions & 0 deletions base_partner_sequence/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_partner_sequence
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\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"

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

#. module: base_partner_sequence
#: 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 "Empresa"
33 changes: 33 additions & 0 deletions base_partner_sequence/i18n/cs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_partner_sequence
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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
#: 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