diff --git a/l10n_it_abicab/README.rst b/l10n_it_abicab/README.rst new file mode 100644 index 000000000000..8d766fe7d290 --- /dev/null +++ b/l10n_it_abicab/README.rst @@ -0,0 +1,99 @@ +============================ +ITA - Codici bancari ABI/CAB +============================ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:cd819073d118a76b6aea93e3a895b0be2661d24da160792e5a7580b87ff247fe + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fl10n--italy-lightgray.png?logo=github + :target: https://github.com/OCA/l10n-italy/tree/18.0/l10n_it_abicab + :alt: OCA/l10n-italy +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/l10n-italy-18-0/l10n-italy-18-0-l10n_it_abicab + :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/l10n-italy&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +**Italiano** + +Questo modulo aggiunge a res.bank i dati ABI/CAB (numeri identificativi +della banca). + +**English** + +This module adds to res.bank the ABI/CAB data (bank identification +numbers). + +**Table of contents** + +.. contents:: + :local: + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Odoo Italia Network + +Contributors +------------ + +- `Odoo Italia Network `__ +- Franco Tampieri +- Alessandro Camilli +- Lorenzo Battistini +- Davide Corio +- Francesco Apruzzese +- Sergio Zanchetta +- Matteo Boscolo + +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. + +.. |maintainer-Borruso| image:: https://github.com/Borruso.png?size=40px + :target: https://github.com/Borruso + :alt: Borruso + +Current `maintainer `__: + +|maintainer-Borruso| + +This module is part of the `OCA/l10n-italy `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_it_abicab/__init__.py b/l10n_it_abicab/__init__.py new file mode 100644 index 000000000000..2fa14ce762d7 --- /dev/null +++ b/l10n_it_abicab/__init__.py @@ -0,0 +1,5 @@ +# Copyright 2015 Associazione Odoo Italia () +# Copyright 2016 Davide Corio (Abstract) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/l10n_it_abicab/__manifest__.py b/l10n_it_abicab/__manifest__.py new file mode 100644 index 000000000000..91136e8e1531 --- /dev/null +++ b/l10n_it_abicab/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2015 Associazione Odoo Italia () +# Copyright 2016 Davide Corio (Abstract) +# Copyright 2018 Sergio Zanchetta (Associazione PNLUG - Gruppo Odoo) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + "name": "ITA - Codici bancari ABI/CAB", + "version": "18.0.1.0.0", + "category": "Localization/Italy", + "development_status": "Production/Stable", + "summary": "Base Bank ABI/CAB codes", + "author": "Odoo Italia Network, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/l10n-italy", + "license": "AGPL-3", + "maintainers": ["Borruso"], + "depends": ["account"], + "data": ["views/abicab_view.xml"], + "installable": True, +} diff --git a/l10n_it_abicab/i18n/de.po b/l10n_it_abicab/i18n/de.po new file mode 100644 index 000000000000..a9282833899b --- /dev/null +++ b/l10n_it_abicab/i18n/de.po @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_it_abicab +# +# Translators: +# Niki Waibel , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-01 19:47+0000\n" +"PO-Revision-Date: 2016-11-01 19:47+0000\n" +"Last-Translator: Niki Waibel , 2016\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\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: l10n_it_abicab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_account_setup_bank_manual_config__bank_abi +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_bank__abi +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_partner_bank__bank_abi +msgid "ABI" +msgstr "" + +#. module: l10n_it_abicab +#: model:ir.model,name:l10n_it_abicab.model_res_bank +msgid "Bank" +msgstr "Bank" + +#. module: l10n_it_abicab +#: model:ir.model,name:l10n_it_abicab.model_res_partner_bank +msgid "Bank Accounts" +msgstr "Bankkonten" + +#. module: l10n_it_abicab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_account_setup_bank_manual_config__bank_cab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_bank__cab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_partner_bank__bank_cab +msgid "CAB" +msgstr "" + +#. module: l10n_it_abicab +#: model_terms:ir.ui.view,arch_db:l10n_it_abicab.view_bank_filter_abicab +msgid "Search Bank" +msgstr "" + +#~ msgid "Bank Details" +#~ msgstr "Bankdetails" diff --git a/l10n_it_abicab/i18n/it.po b/l10n_it_abicab/i18n/it.po new file mode 100644 index 000000000000..ba6e82714175 --- /dev/null +++ b/l10n_it_abicab/i18n/it.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_it_abicab +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-07-16 02:46+0000\n" +"PO-Revision-Date: 2021-05-21 18:47+0000\n" +"Last-Translator: Sergio Zanchetta \n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\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: l10n_it_abicab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_account_setup_bank_manual_config__bank_abi +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_bank__abi +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_partner_bank__bank_abi +msgid "ABI" +msgstr "ABI" + +#. module: l10n_it_abicab +#: model:ir.model,name:l10n_it_abicab.model_res_bank +msgid "Bank" +msgstr "Banca" + +#. module: l10n_it_abicab +#: model:ir.model,name:l10n_it_abicab.model_res_partner_bank +msgid "Bank Accounts" +msgstr "Conti bancari" + +#. module: l10n_it_abicab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_account_setup_bank_manual_config__bank_cab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_bank__cab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_partner_bank__bank_cab +msgid "CAB" +msgstr "CAB" + +#. module: l10n_it_abicab +#: model_terms:ir.ui.view,arch_db:l10n_it_abicab.view_bank_filter_abicab +msgid "Search Bank" +msgstr "Ricerca banca" + +#~ msgid "Bank Details" +#~ msgstr "Dettagli banca" + +#~ msgid "Display Name" +#~ msgstr "Nome visualizzato" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Ultima modifica il" diff --git a/l10n_it_abicab/i18n/l10n_it_abicab.pot b/l10n_it_abicab/i18n/l10n_it_abicab.pot new file mode 100644 index 000000000000..df03d7bcfc5b --- /dev/null +++ b/l10n_it_abicab/i18n/l10n_it_abicab.pot @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_it_abicab +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.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_it_abicab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_account_setup_bank_manual_config__bank_abi +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_bank__abi +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_partner_bank__bank_abi +msgid "ABI" +msgstr "" + +#. module: l10n_it_abicab +#: model:ir.model,name:l10n_it_abicab.model_res_bank +msgid "Bank" +msgstr "" + +#. module: l10n_it_abicab +#: model:ir.model,name:l10n_it_abicab.model_res_partner_bank +msgid "Bank Accounts" +msgstr "" + +#. module: l10n_it_abicab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_account_setup_bank_manual_config__bank_cab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_bank__cab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_partner_bank__bank_cab +msgid "CAB" +msgstr "" + +#. module: l10n_it_abicab +#: model_terms:ir.ui.view,arch_db:l10n_it_abicab.view_bank_filter_abicab +msgid "Search Bank" +msgstr "" diff --git a/l10n_it_abicab/i18n/nb_NO.po b/l10n_it_abicab/i18n/nb_NO.po new file mode 100644 index 000000000000..06ac33b2de08 --- /dev/null +++ b/l10n_it_abicab/i18n/nb_NO.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_it_abicab +# +# Translators: +# Imre Kristoffer Eilertsen , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-07-30 23:26+0000\n" +"PO-Revision-Date: 2016-07-30 23:26+0000\n" +"Last-Translator: Imre Kristoffer Eilertsen , 2016\n" +"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/" +"teams/23907/nb_NO/)\n" +"Language: nb_NO\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: l10n_it_abicab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_account_setup_bank_manual_config__bank_abi +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_bank__abi +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_partner_bank__bank_abi +msgid "ABI" +msgstr "ABI" + +#. module: l10n_it_abicab +#: model:ir.model,name:l10n_it_abicab.model_res_bank +msgid "Bank" +msgstr "Bank" + +#. module: l10n_it_abicab +#: model:ir.model,name:l10n_it_abicab.model_res_partner_bank +msgid "Bank Accounts" +msgstr "Bankkontoer" + +#. module: l10n_it_abicab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_account_setup_bank_manual_config__bank_cab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_bank__cab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_partner_bank__bank_cab +msgid "CAB" +msgstr "CAB" + +#. module: l10n_it_abicab +#: model_terms:ir.ui.view,arch_db:l10n_it_abicab.view_bank_filter_abicab +msgid "Search Bank" +msgstr "" + +#~ msgid "Bank Details" +#~ msgstr "Bankdetaljer" diff --git a/l10n_it_abicab/i18n/sl.po b/l10n_it_abicab/i18n/sl.po new file mode 100644 index 000000000000..6e214c04f88f --- /dev/null +++ b/l10n_it_abicab/i18n/sl.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_it_abicab +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-07-16 02:46+0000\n" +"PO-Revision-Date: 2016-07-16 02:46+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" + +#. module: l10n_it_abicab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_account_setup_bank_manual_config__bank_abi +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_bank__abi +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_partner_bank__bank_abi +msgid "ABI" +msgstr "ABI" + +#. module: l10n_it_abicab +#: model:ir.model,name:l10n_it_abicab.model_res_bank +msgid "Bank" +msgstr "Banka" + +#. module: l10n_it_abicab +#: model:ir.model,name:l10n_it_abicab.model_res_partner_bank +msgid "Bank Accounts" +msgstr "Bančni računi" + +#. module: l10n_it_abicab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_account_setup_bank_manual_config__bank_cab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_bank__cab +#: model:ir.model.fields,field_description:l10n_it_abicab.field_res_partner_bank__bank_cab +msgid "CAB" +msgstr "CAB" + +#. module: l10n_it_abicab +#: model_terms:ir.ui.view,arch_db:l10n_it_abicab.view_bank_filter_abicab +msgid "Search Bank" +msgstr "" + +#~ msgid "Bank Details" +#~ msgstr "Bančni podatki" diff --git a/l10n_it_abicab/models/__init__.py b/l10n_it_abicab/models/__init__.py new file mode 100644 index 000000000000..a02e127ab88f --- /dev/null +++ b/l10n_it_abicab/models/__init__.py @@ -0,0 +1,5 @@ +# Copyright 2015 Associazione Odoo Italia () +# Copyright 2016 Davide Corio (Abstract) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import abicab diff --git a/l10n_it_abicab/models/abicab.py b/l10n_it_abicab/models/abicab.py new file mode 100644 index 000000000000..868d308afa2e --- /dev/null +++ b/l10n_it_abicab/models/abicab.py @@ -0,0 +1,20 @@ +# Copyright 2015 Associazione Odoo Italia () +# Copyright 2016 Davide Corio (Abstract) +# Copyright 2018 Sergio Zanchetta (Associazione PNLUG - Gruppo Odoo) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class ResBank(models.Model): + _inherit = "res.bank" + + abi = fields.Char(size=5, string="ABI") + cab = fields.Char(size=5, string="CAB") + + +class ResPartnerBank(models.Model): + _inherit = "res.partner.bank" + + bank_abi = fields.Char(size=5, string="ABI", related="bank_id.abi", store=True) + bank_cab = fields.Char(size=5, string="CAB", related="bank_id.cab", store=True) diff --git a/l10n_it_abicab/pyproject.toml b/l10n_it_abicab/pyproject.toml new file mode 100644 index 000000000000..4231d0cccb3d --- /dev/null +++ b/l10n_it_abicab/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/l10n_it_abicab/readme/CONTRIBUTORS.md b/l10n_it_abicab/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..02ee9eb5b9fb --- /dev/null +++ b/l10n_it_abicab/readme/CONTRIBUTORS.md @@ -0,0 +1,8 @@ +- [Odoo Italia Network](http://www.odoo-italia.net/) +- Franco Tampieri \<\> +- Alessandro Camilli \<\> +- Lorenzo Battistini \<\> +- Davide Corio \<\> +- Francesco Apruzzese \<\> +- Sergio Zanchetta \<\> +- Matteo Boscolo \<\> diff --git a/l10n_it_abicab/readme/DESCRIPTION.md b/l10n_it_abicab/readme/DESCRIPTION.md new file mode 100644 index 000000000000..f518bcd414fb --- /dev/null +++ b/l10n_it_abicab/readme/DESCRIPTION.md @@ -0,0 +1,9 @@ +**Italiano** + +Questo modulo aggiunge a res.bank i dati ABI/CAB (numeri identificativi +della banca). + +**English** + +This module adds to res.bank the ABI/CAB data (bank identification +numbers). diff --git a/l10n_it_abicab/static/description/icon.png b/l10n_it_abicab/static/description/icon.png new file mode 100644 index 000000000000..3a0328b516c4 Binary files /dev/null and b/l10n_it_abicab/static/description/icon.png differ diff --git a/l10n_it_abicab/static/description/index.html b/l10n_it_abicab/static/description/index.html new file mode 100644 index 000000000000..37bde6bc7eec --- /dev/null +++ b/l10n_it_abicab/static/description/index.html @@ -0,0 +1,437 @@ + + + + + +ITA - Codici bancari ABI/CAB + + + +
+

ITA - Codici bancari ABI/CAB

+ + +

Production/Stable License: AGPL-3 OCA/l10n-italy Translate me on Weblate Try me on Runboat

+

Italiano

+

Questo modulo aggiunge a res.bank i dati ABI/CAB (numeri identificativi +della banca).

+

English

+

This module adds to res.bank the ABI/CAB data (bank identification +numbers).

+

Table of contents

+ +
+

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 to smash it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Odoo Italia Network
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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.

+

Current maintainer:

+

Borruso

+

This module is part of the OCA/l10n-italy project on GitHub.

+

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

+
+
+
+ + diff --git a/l10n_it_abicab/tests/__init__.py b/l10n_it_abicab/tests/__init__.py new file mode 100644 index 000000000000..51624628c358 --- /dev/null +++ b/l10n_it_abicab/tests/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2016 Davide Corio (Abstract) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import test_abicab diff --git a/l10n_it_abicab/tests/test_abicab.py b/l10n_it_abicab/tests/test_abicab.py new file mode 100644 index 000000000000..0121602a74fe --- /dev/null +++ b/l10n_it_abicab/tests/test_abicab.py @@ -0,0 +1,31 @@ +# Copyright 2016 Davide Corio (Abstract) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo.tests.common import TransactionCase + + +class BankCase(TransactionCase): + def setUp(self): + super().setUp() + self.partner1 = self.env["res.partner"].create({"name": "Partner1"}) + + def test_create_bank(self): + bank_model = self.env["res.bank"] + pbank_model = self.env["res.partner.bank"] + bank1 = bank_model.create( + { + "name": "Bank1", + "abi": "abi_1", + "cab": "cab_1", + } + ) + pbank1 = pbank_model.create( + { + "acc_number": "212", + "partner_id": self.partner1.id, + "bank_id": bank1.id, + } + ) + + self.assertEqual(pbank1.bank_abi, "abi_1") + self.assertEqual(pbank1.bank_cab, "cab_1") diff --git a/l10n_it_abicab/views/abicab_view.xml b/l10n_it_abicab/views/abicab_view.xml new file mode 100644 index 000000000000..aa432a8f48d1 --- /dev/null +++ b/l10n_it_abicab/views/abicab_view.xml @@ -0,0 +1,52 @@ + + + + res.bank.filter.abicab + res.bank + search + + + + + + + + + + + res.bank.list.list + res.bank + + + + + + + + + + + res.bank.form.abicab + res.bank + + + + + + + + + + + res.partner.bank.form + res.partner.bank + + + + + + + + + +