From 19f8f8bc01700556dacd052f5420b92ab4819bc1 Mon Sep 17 00:00:00 2001 From: lk-eska Date: Tue, 18 Oct 2022 00:30:19 +0300 Subject: [PATCH] [MIG] l10n_us_partner_legal_number: Migration to 16.0 --- l10n_us_partner_legal_number/README.rst | 17 +- l10n_us_partner_legal_number/__manifest__.py | 5 +- .../i18n/l10n_us_partner_legal_number.pot | 70 +++ l10n_us_partner_legal_number/models/base.py | 6 +- .../readme/CONTRIBUTORS.rst | 4 + .../readme/DESCRIPTION.rst | 1 + l10n_us_partner_legal_number/readme/USAGE.rst | 1 + .../static/description/index.html | 427 ++++++++++++++++++ requirements.txt | 2 + .../odoo/addons/l10n_us_partner_legal_number | 1 + setup/l10n_us_partner_legal_number/setup.py | 6 + 11 files changed, 528 insertions(+), 12 deletions(-) create mode 100644 l10n_us_partner_legal_number/i18n/l10n_us_partner_legal_number.pot create mode 100644 l10n_us_partner_legal_number/readme/CONTRIBUTORS.rst create mode 100644 l10n_us_partner_legal_number/readme/DESCRIPTION.rst create mode 100644 l10n_us_partner_legal_number/readme/USAGE.rst create mode 100644 l10n_us_partner_legal_number/static/description/index.html create mode 100644 requirements.txt create mode 120000 setup/l10n_us_partner_legal_number/odoo/addons/l10n_us_partner_legal_number create mode 100644 setup/l10n_us_partner_legal_number/setup.py diff --git a/l10n_us_partner_legal_number/README.rst b/l10n_us_partner_legal_number/README.rst index ff3ed626..885d1d29 100644 --- a/l10n_us_partner_legal_number/README.rst +++ b/l10n_us_partner_legal_number/README.rst @@ -1,6 +1,6 @@ -===================================================== -Localizations for North American Banking & Financials -===================================================== +======================================================== +Add Legal Number for North American Banking & Financials +======================================================== .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! @@ -14,13 +14,13 @@ Localizations for North American Banking & Financials :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--usa-lightgray.png?logo=github - :target: https://github.com/OCA/l10n-usa/tree/12.0/account_banking_ach_base + :target: https://github.com/OCA/l10n-usa/tree/16.0/l10n_us_partner_legal_number :alt: OCA/l10n-usa .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/l10n-usa-12-0/l10n-usa-12-0-account_banking_ach_base + :target: https://translation.odoo-community.org/projects/l10n-usa-16-0/l10n-usa-16-0-l10n_us_partner_legal_number :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/203/12.0 + :target: https://runbot.odoo-community.org/runbot/203/16.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -42,6 +42,8 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. Do not contact contributors directly about support or help with technical issues. @@ -59,6 +61,7 @@ Contributors * Chankya Soni * Maxime Chambreuil * Serpent Consulting Services Pvt. Ltd. +* Levent Karakas Maintainers ~~~~~~~~~~~ @@ -73,4 +76,6 @@ 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/l10n-usa `_ project on GitHub. + You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_us_partner_legal_number/__manifest__.py b/l10n_us_partner_legal_number/__manifest__.py index 68a0d4f6..c296064f 100644 --- a/l10n_us_partner_legal_number/__manifest__.py +++ b/l10n_us_partner_legal_number/__manifest__.py @@ -4,12 +4,13 @@ { "name": "Add Legal Number for North American Banking & Financials", "summary": "Add Legal Number for North American Banking & Financials", - "version": "14.0.1.0.0", + "version": "16.0.1.0.0", "license": "AGPL-3", "author": "Open Source Integrators, Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-usa", "category": "Banking addons", - "depends": ["base"], + "depends": ["account"], "data": ["views/res_partner.xml"], "installable": True, + "external_dependencies": {"python": ["python-stdnum"]}, } diff --git a/l10n_us_partner_legal_number/i18n/l10n_us_partner_legal_number.pot b/l10n_us_partner_legal_number/i18n/l10n_us_partner_legal_number.pot new file mode 100644 index 00000000..4167d033 --- /dev/null +++ b/l10n_us_partner_legal_number/i18n/l10n_us_partner_legal_number.pot @@ -0,0 +1,70 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_us_partner_legal_number +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.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: l10n_us_partner_legal_number +#: code:addons/l10n_us_partner_legal_number/models/base.py:0 +#, python-format +msgid "%s is not a valid EIN / SSN / Canadian Business Number" +msgstr "" + +#. module: l10n_us_partner_legal_number +#: model:ir.model,name:l10n_us_partner_legal_number.model_res_partner +msgid "Contact" +msgstr "" + +#. module: l10n_us_partner_legal_number +#: model:ir.model,name:l10n_us_partner_legal_number.model_countinghouse_legal_id_number +msgid "Countinghouse Legal Id Number" +msgstr "" + +#. module: l10n_us_partner_legal_number +#: model:ir.model.fields,field_description:l10n_us_partner_legal_number.field_countinghouse_legal_id_number__display_name +#: model:ir.model.fields,field_description:l10n_us_partner_legal_number.field_res_partner__display_name +msgid "Display Name" +msgstr "" + +#. module: l10n_us_partner_legal_number +#: model_terms:ir.ui.view,arch_db:l10n_us_partner_legal_number.view_partner_legal_id_number +msgid "EIN / SSN / BN" +msgstr "" + +#. module: l10n_us_partner_legal_number +#: model:ir.model.fields,help:l10n_us_partner_legal_number.field_countinghouse_legal_id_number__legal_id_number +#: model:ir.model.fields,help:l10n_us_partner_legal_number.field_res_partner__legal_id_number +#: model:ir.model.fields,help:l10n_us_partner_legal_number.field_res_users__legal_id_number +msgid "" +"For US entities, enter valid EIN or Social Security Number.\n" +" Canadian entities, enter Canadian Business Number.\n" +" " +msgstr "" + +#. module: l10n_us_partner_legal_number +#: model:ir.model.fields,field_description:l10n_us_partner_legal_number.field_countinghouse_legal_id_number__id +#: model:ir.model.fields,field_description:l10n_us_partner_legal_number.field_res_partner__id +msgid "ID" +msgstr "" + +#. module: l10n_us_partner_legal_number +#: model:ir.model.fields,field_description:l10n_us_partner_legal_number.field_countinghouse_legal_id_number____last_update +#: model:ir.model.fields,field_description:l10n_us_partner_legal_number.field_res_partner____last_update +msgid "Last Modified on" +msgstr "" + +#. module: l10n_us_partner_legal_number +#: model:ir.model.fields,field_description:l10n_us_partner_legal_number.field_countinghouse_legal_id_number__legal_id_number +#: model:ir.model.fields,field_description:l10n_us_partner_legal_number.field_res_partner__legal_id_number +#: model:ir.model.fields,field_description:l10n_us_partner_legal_number.field_res_users__legal_id_number +msgid "Legal ID" +msgstr "" diff --git a/l10n_us_partner_legal_number/models/base.py b/l10n_us_partner_legal_number/models/base.py index cfc220bc..0a80a3e5 100644 --- a/l10n_us_partner_legal_number/models/base.py +++ b/l10n_us_partner_legal_number/models/base.py @@ -38,8 +38,6 @@ def validate_legal_id_number(self): continue if not valid: raise UserError( - _( - "%s is not a valid EIN / SSN / Canadian Business " - "Number" % self.legal_id_number - ) + _("%s is not a valid EIN / SSN / Canadian Business Number") + % self.legal_id_number ) diff --git a/l10n_us_partner_legal_number/readme/CONTRIBUTORS.rst b/l10n_us_partner_legal_number/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..8f2d4232 --- /dev/null +++ b/l10n_us_partner_legal_number/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* Chankya Soni +* Maxime Chambreuil +* Serpent Consulting Services Pvt. Ltd. +* Levent Karakas diff --git a/l10n_us_partner_legal_number/readme/DESCRIPTION.rst b/l10n_us_partner_legal_number/readme/DESCRIPTION.rst new file mode 100644 index 00000000..e1a2fc53 --- /dev/null +++ b/l10n_us_partner_legal_number/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Add Legal Number for North American Banking & Financials diff --git a/l10n_us_partner_legal_number/readme/USAGE.rst b/l10n_us_partner_legal_number/readme/USAGE.rst new file mode 100644 index 00000000..b11b7ffa --- /dev/null +++ b/l10n_us_partner_legal_number/readme/USAGE.rst @@ -0,0 +1 @@ +Add Legal Number Field diff --git a/l10n_us_partner_legal_number/static/description/index.html b/l10n_us_partner_legal_number/static/description/index.html new file mode 100644 index 00000000..77e565f3 --- /dev/null +++ b/l10n_us_partner_legal_number/static/description/index.html @@ -0,0 +1,427 @@ + + + + + + +Add Legal Number for North American Banking & Financials + + + + + + diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..f8f07db7 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +# generated from manifests external_dependencies +python-stdnum diff --git a/setup/l10n_us_partner_legal_number/odoo/addons/l10n_us_partner_legal_number b/setup/l10n_us_partner_legal_number/odoo/addons/l10n_us_partner_legal_number new file mode 120000 index 00000000..66975eaf --- /dev/null +++ b/setup/l10n_us_partner_legal_number/odoo/addons/l10n_us_partner_legal_number @@ -0,0 +1 @@ +../../../../l10n_us_partner_legal_number \ No newline at end of file diff --git a/setup/l10n_us_partner_legal_number/setup.py b/setup/l10n_us_partner_legal_number/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/l10n_us_partner_legal_number/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)