From 913bcb8c90ed4f6ed45ec8c58c19f34404bb11c8 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 14 Dec 2018 11:21:33 +0100 Subject: [PATCH] [MIG] account_banking_pain_base: Migration to 12.0 * Standard migration procedure * README by fragments * Fixed tests * Change * Fix related no readonly in account_banking_pain_base * Override default partner bank account check on account_payment_partner * Convert Python date to string --- .../README.rst | 78 ++- .../__init__.py | 1 - .../__manifest__.py | 9 +- .../account_banking_sepa_credit_transfer.pot | 66 ++- .../i18n/de.po | 64 ++- .../i18n/es.po | 64 ++- .../i18n/fr.po | 64 ++- .../i18n/hr.po | 64 ++- .../i18n/nb_NO.po | 64 ++- .../i18n/nl.po | 64 ++- .../i18n/pt_BR.po | 64 ++- .../i18n/sl.po | 64 ++- .../models/__init__.py | 1 - .../models/account_payment_line.py | 3 +- .../models/account_payment_method.py | 3 +- .../models/account_payment_order.py | 8 +- .../post_install.py | 3 +- .../readme/CONFIGURE.rst | 6 + .../readme/CONTRIBUTORS.rst | 12 + .../readme/DESCRIPTION.rst | 16 + .../readme/INSTALL.rst | 4 + .../readme/USAGE.rst | 3 + .../static/description/index.html | 468 ++++++++++++++++++ .../tests/__init__.py | 1 - .../tests/test_sct.py | 9 +- 25 files changed, 1137 insertions(+), 66 deletions(-) create mode 100644 account_banking_sepa_credit_transfer/readme/CONFIGURE.rst create mode 100644 account_banking_sepa_credit_transfer/readme/CONTRIBUTORS.rst create mode 100644 account_banking_sepa_credit_transfer/readme/DESCRIPTION.rst create mode 100644 account_banking_sepa_credit_transfer/readme/INSTALL.rst create mode 100644 account_banking_sepa_credit_transfer/readme/USAGE.rst create mode 100644 account_banking_sepa_credit_transfer/static/description/index.html diff --git a/account_banking_sepa_credit_transfer/README.rst b/account_banking_sepa_credit_transfer/README.rst index 746559822..ed0a54b72 100644 --- a/account_banking_sepa_credit_transfer/README.rst +++ b/account_banking_sepa_credit_transfer/README.rst @@ -1,10 +1,30 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :alt: License: AGPL-3 - ==================================== Account Banking SEPA Credit Transfer ==================================== +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |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%2Fbank--payment-lightgray.png?logo=github + :target: https://github.com/OCA/bank-payment/tree/12.0/account_banking_sepa_credit_transfer + :alt: OCA/bank-payment +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/bank-payment-12-0/bank-payment-12-0-account_banking_sepa_credit_transfer + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/173/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + Module to export payment orders in SEPA XML file format. SEPA PAIN (PAyment INitiation) is the new european standard for @@ -22,6 +42,11 @@ It also includes pain.001.003.03 which is used in Germany instead of 001.001.03. You can read more about this here (only in german language): http://www.ebics.de/startseite/ +**Table of contents** + +.. contents:: + :local: + Installation ============ @@ -47,31 +72,29 @@ In the menu *Invoicing/Accounting > Payments > Payment Order*, create a new payment order and select the Payment Mode dedicated to SEPA Credit Transfer that you created during the configuration step. -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/173/11.0 - -Known issues / Roadmap -====================== - - * No known issues - 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. +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. Credits ======= +Authors +~~~~~~~ + +* Akretion +* Tecnativa + Contributors ------------- +~~~~~~~~~~~~ * Alexis de Lattre -* Pedro M. Baeza * Stéphane Bidoul * Stefan Rijnhart * Julien Laloux @@ -79,17 +102,24 @@ Contributors * Raphaël Valyi * Erwin van der Ploeg * Sandy Carter -* Antonio Espinosa +* `Tecnativa `__: -Maintainer ----------- + * Antonio Espinosa + * Pedro M. Baeza + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. +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. -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/bank-payment `_ project on GitHub. -To contribute to this module, please visit https://odoo-community.org. +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_banking_sepa_credit_transfer/__init__.py b/account_banking_sepa_credit_transfer/__init__.py index a1815ae51..24b65ee99 100644 --- a/account_banking_sepa_credit_transfer/__init__.py +++ b/account_banking_sepa_credit_transfer/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from . import models from .post_install import update_bank_journals diff --git a/account_banking_sepa_credit_transfer/__manifest__.py b/account_banking_sepa_credit_transfer/__manifest__.py index decd94359..620e4e23d 100644 --- a/account_banking_sepa_credit_transfer/__manifest__.py +++ b/account_banking_sepa_credit_transfer/__manifest__.py @@ -1,13 +1,12 @@ -# -*- coding: utf-8 -*- -# © 2010-2016 Akretion (www.akretion.com) -# © 2014 Tecnativa - Pedro M. Baeza -# © 2016 Tecnativa - Antonio Espinosa +# Copyright 2010-2016 Akretion (www.akretion.com) +# Copyright 2016 Tecnativa - Antonio Espinosa +# Copyright 2014-2018 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { 'name': 'Account Banking SEPA Credit Transfer', 'summary': 'Create SEPA XML files for Credit Transfers', - 'version': '11.0.1.0.0', + 'version': '12.0.1.0.0', 'license': 'AGPL-3', 'author': "Akretion, " "Tecnativa, " diff --git a/account_banking_sepa_credit_transfer/i18n/account_banking_sepa_credit_transfer.pot b/account_banking_sepa_credit_transfer/i18n/account_banking_sepa_credit_transfer.pot index fdcc3f471..f1d9281cb 100644 --- a/account_banking_sepa_credit_transfer/i18n/account_banking_sepa_credit_transfer.pot +++ b/account_banking_sepa_credit_transfer/i18n/account_banking_sepa_credit_transfer.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" @@ -20,8 +20,23 @@ msgid "Bank account is missing on the bank payment line of partner '%s' (referen msgstr "" #. module: account_banking_sepa_credit_transfer -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:27 -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:61 +#: selection:account.payment.line,local_instrument:0 +msgid "Instant Transfer" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_line__local_instrument +msgid "Local Instrument" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_method__pain_version +msgid "PAIN Version" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:26 +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:60 #, python-format msgid "PAIN version '%s' is not supported." msgstr "" @@ -47,3 +62,48 @@ msgstr "" msgid "SEPA Credit Transfer to suppliers" msgstr "" +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.02" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.03 (recommended for credit transfer)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.05" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.003.03 (credit transfer in Germany)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.02 (recommended for direct debit)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.03" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.003.02 (direct debit in Germany)" +msgstr "" + diff --git a/account_banking_sepa_credit_transfer/i18n/de.po b/account_banking_sepa_credit_transfer/i18n/de.po index 656fadca9..eecf3459a 100644 --- a/account_banking_sepa_credit_transfer/i18n/de.po +++ b/account_banking_sepa_credit_transfer/i18n/de.po @@ -29,8 +29,23 @@ msgstr "" "Das Bankkonto fehlt auf der Zahlungszeile des Partners '%s' (Referenz '%s')." #. module: account_banking_sepa_credit_transfer -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:27 -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:61 +#: selection:account.payment.line,local_instrument:0 +msgid "Instant Transfer" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_line__local_instrument +msgid "Local Instrument" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_method__pain_version +msgid "PAIN Version" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:26 +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:60 #, python-format msgid "PAIN version '%s' is not supported." msgstr "PAIN Version '%s' wird nicht unterstützt." @@ -55,3 +70,48 @@ msgstr "Zahlungsauftrag" #: model:account.payment.mode,name:account_banking_sepa_credit_transfer.payment_mode_outbound_sepa_ct1 msgid "SEPA Credit Transfer to suppliers" msgstr "SEPA-Überweisung an Lieferanten" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.02" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.03 (recommended for credit transfer)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.05" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.003.03 (credit transfer in Germany)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.02 (recommended for direct debit)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.03" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.003.02 (direct debit in Germany)" +msgstr "" diff --git a/account_banking_sepa_credit_transfer/i18n/es.po b/account_banking_sepa_credit_transfer/i18n/es.po index a7ba9c0b2..1ccb19dbd 100644 --- a/account_banking_sepa_credit_transfer/i18n/es.po +++ b/account_banking_sepa_credit_transfer/i18n/es.po @@ -29,8 +29,23 @@ msgstr "" "'%s')." #. module: account_banking_sepa_credit_transfer -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:27 -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:61 +#: selection:account.payment.line,local_instrument:0 +msgid "Instant Transfer" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_line__local_instrument +msgid "Local Instrument" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_method__pain_version +msgid "PAIN Version" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:26 +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:60 #, python-format msgid "PAIN version '%s' is not supported." msgstr "La versión PAIN '%s' no está soportada." @@ -55,3 +70,48 @@ msgstr "Orden de pago" #: model:account.payment.mode,name:account_banking_sepa_credit_transfer.payment_mode_outbound_sepa_ct1 msgid "SEPA Credit Transfer to suppliers" msgstr "Transferencia de crédito SEPA para proveedores" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.02" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.03 (recommended for credit transfer)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.05" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.003.03 (credit transfer in Germany)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.02 (recommended for direct debit)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.03" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.003.02 (direct debit in Germany)" +msgstr "" diff --git a/account_banking_sepa_credit_transfer/i18n/fr.po b/account_banking_sepa_credit_transfer/i18n/fr.po index b8a07a96d..e7c87a7b7 100644 --- a/account_banking_sepa_credit_transfer/i18n/fr.po +++ b/account_banking_sepa_credit_transfer/i18n/fr.po @@ -29,8 +29,23 @@ msgstr "" "partenaire '%s' (référence '%s')." #. module: account_banking_sepa_credit_transfer -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:27 -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:61 +#: selection:account.payment.line,local_instrument:0 +msgid "Instant Transfer" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_line__local_instrument +msgid "Local Instrument" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_method__pain_version +msgid "PAIN Version" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:26 +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:60 #, python-format msgid "PAIN version '%s' is not supported." msgstr "PAIN version '%s' n'est pas supporté." @@ -55,3 +70,48 @@ msgstr "Ordre de paiement" #: model:account.payment.mode,name:account_banking_sepa_credit_transfer.payment_mode_outbound_sepa_ct1 msgid "SEPA Credit Transfer to suppliers" msgstr "Virement SEPA aux fournisseurs" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.02" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.03 (recommended for credit transfer)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.05" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.003.03 (credit transfer in Germany)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.02 (recommended for direct debit)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.03" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.003.02 (direct debit in Germany)" +msgstr "" diff --git a/account_banking_sepa_credit_transfer/i18n/hr.po b/account_banking_sepa_credit_transfer/i18n/hr.po index 88c72d5d8..3b20e2aa6 100644 --- a/account_banking_sepa_credit_transfer/i18n/hr.po +++ b/account_banking_sepa_credit_transfer/i18n/hr.po @@ -28,8 +28,23 @@ msgid "" msgstr "" #. module: account_banking_sepa_credit_transfer -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:27 -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:61 +#: selection:account.payment.line,local_instrument:0 +msgid "Instant Transfer" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_line__local_instrument +msgid "Local Instrument" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_method__pain_version +msgid "PAIN Version" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:26 +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:60 #, python-format msgid "PAIN version '%s' is not supported." msgstr "" @@ -54,3 +69,48 @@ msgstr "Nalog za plaćanje" #: model:account.payment.mode,name:account_banking_sepa_credit_transfer.payment_mode_outbound_sepa_ct1 msgid "SEPA Credit Transfer to suppliers" msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.02" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.03 (recommended for credit transfer)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.05" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.003.03 (credit transfer in Germany)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.02 (recommended for direct debit)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.03" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.003.02 (direct debit in Germany)" +msgstr "" diff --git a/account_banking_sepa_credit_transfer/i18n/nb_NO.po b/account_banking_sepa_credit_transfer/i18n/nb_NO.po index 33853e6f2..486aec84e 100644 --- a/account_banking_sepa_credit_transfer/i18n/nb_NO.po +++ b/account_banking_sepa_credit_transfer/i18n/nb_NO.po @@ -28,8 +28,23 @@ msgid "" msgstr "" #. module: account_banking_sepa_credit_transfer -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:27 -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:61 +#: selection:account.payment.line,local_instrument:0 +msgid "Instant Transfer" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_line__local_instrument +msgid "Local Instrument" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_method__pain_version +msgid "PAIN Version" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:26 +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:60 #, python-format msgid "PAIN version '%s' is not supported." msgstr "" @@ -55,3 +70,48 @@ msgstr "Betalingsordre" #: model:account.payment.mode,name:account_banking_sepa_credit_transfer.payment_mode_outbound_sepa_ct1 msgid "SEPA Credit Transfer to suppliers" msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.02" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.03 (recommended for credit transfer)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.05" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.003.03 (credit transfer in Germany)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.02 (recommended for direct debit)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.03" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.003.02 (direct debit in Germany)" +msgstr "" diff --git a/account_banking_sepa_credit_transfer/i18n/nl.po b/account_banking_sepa_credit_transfer/i18n/nl.po index 9193c713b..8b2e81dfd 100644 --- a/account_banking_sepa_credit_transfer/i18n/nl.po +++ b/account_banking_sepa_credit_transfer/i18n/nl.po @@ -28,8 +28,23 @@ msgstr "" "Bankrekening ontbreekt op de betaalregel van relatie '%s' (reference '%s')." #. module: account_banking_sepa_credit_transfer -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:27 -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:61 +#: selection:account.payment.line,local_instrument:0 +msgid "Instant Transfer" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_line__local_instrument +msgid "Local Instrument" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_method__pain_version +msgid "PAIN Version" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:26 +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:60 #, python-format msgid "PAIN version '%s' is not supported." msgstr "PAIN versie '%s' is niet ondersteund." @@ -54,3 +69,48 @@ msgstr "Betalingsopdracht" #: model:account.payment.mode,name:account_banking_sepa_credit_transfer.payment_mode_outbound_sepa_ct1 msgid "SEPA Credit Transfer to suppliers" msgstr "SEPA overboeking naar leveranciers" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.02" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.03 (recommended for credit transfer)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.05" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.003.03 (credit transfer in Germany)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.02 (recommended for direct debit)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.03" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.003.02 (direct debit in Germany)" +msgstr "" diff --git a/account_banking_sepa_credit_transfer/i18n/pt_BR.po b/account_banking_sepa_credit_transfer/i18n/pt_BR.po index 1ad87dd9e..14a7f6da4 100644 --- a/account_banking_sepa_credit_transfer/i18n/pt_BR.po +++ b/account_banking_sepa_credit_transfer/i18n/pt_BR.po @@ -30,8 +30,23 @@ msgstr "" "'%s')." #. module: account_banking_sepa_credit_transfer -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:27 -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:61 +#: selection:account.payment.line,local_instrument:0 +msgid "Instant Transfer" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_line__local_instrument +msgid "Local Instrument" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_method__pain_version +msgid "PAIN Version" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:26 +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:60 #, python-format msgid "PAIN version '%s' is not supported." msgstr "" @@ -56,3 +71,48 @@ msgstr "Ordem de Pagamento" #: model:account.payment.mode,name:account_banking_sepa_credit_transfer.payment_mode_outbound_sepa_ct1 msgid "SEPA Credit Transfer to suppliers" msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.02" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.03 (recommended for credit transfer)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.05" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.003.03 (credit transfer in Germany)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.02 (recommended for direct debit)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.03" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.003.02 (direct debit in Germany)" +msgstr "" diff --git a/account_banking_sepa_credit_transfer/i18n/sl.po b/account_banking_sepa_credit_transfer/i18n/sl.po index 15317424e..2b8ca5244 100644 --- a/account_banking_sepa_credit_transfer/i18n/sl.po +++ b/account_banking_sepa_credit_transfer/i18n/sl.po @@ -30,8 +30,23 @@ msgstr "" "račun." #. module: account_banking_sepa_credit_transfer -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:27 -#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:61 +#: selection:account.payment.line,local_instrument:0 +msgid "Instant Transfer" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_line__local_instrument +msgid "Local Instrument" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: model:ir.model.fields,field_description:account_banking_sepa_credit_transfer.field_account_payment_method__pain_version +msgid "PAIN Version" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:26 +#: code:addons/account_banking_sepa_credit_transfer/models/account_payment_order.py:60 #, python-format msgid "PAIN version '%s' is not supported." msgstr "" @@ -56,3 +71,48 @@ msgstr "Plačilni nalog" #: model:account.payment.mode,name:account_banking_sepa_credit_transfer.payment_mode_outbound_sepa_ct1 msgid "SEPA Credit Transfer to suppliers" msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.02" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.03 (recommended for credit transfer)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.001.05" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.001.003.03 (credit transfer in Germany)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.02 (recommended for direct debit)" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.03" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.001.04" +msgstr "" + +#. module: account_banking_sepa_credit_transfer +#: selection:account.payment.method,pain_version:0 +msgid "pain.008.003.02 (direct debit in Germany)" +msgstr "" diff --git a/account_banking_sepa_credit_transfer/models/__init__.py b/account_banking_sepa_credit_transfer/models/__init__.py index 3475860d2..137fca50c 100644 --- a/account_banking_sepa_credit_transfer/models/__init__.py +++ b/account_banking_sepa_credit_transfer/models/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from . import account_payment_method from . import account_payment_order diff --git a/account_banking_sepa_credit_transfer/models/account_payment_line.py b/account_banking_sepa_credit_transfer/models/account_payment_line.py index 4800b255a..a2fd57286 100644 --- a/account_banking_sepa_credit_transfer/models/account_payment_line.py +++ b/account_banking_sepa_credit_transfer/models/account_payment_line.py @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- -# © 2017 Akretion - Alexis de Lattre +# Copyright 2017 Akretion - Alexis de Lattre # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import models, fields diff --git a/account_banking_sepa_credit_transfer/models/account_payment_method.py b/account_banking_sepa_credit_transfer/models/account_payment_method.py index 54d061e49..c093be50a 100644 --- a/account_banking_sepa_credit_transfer/models/account_payment_method.py +++ b/account_banking_sepa_credit_transfer/models/account_payment_method.py @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- -# © 2016 Akretion (Alexis de Lattre ) +# Copyright 2016 Akretion (Alexis de Lattre ) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import models, fields, api diff --git a/account_banking_sepa_credit_transfer/models/account_payment_order.py b/account_banking_sepa_credit_transfer/models/account_payment_order.py index df6ccba36..3a39862f4 100644 --- a/account_banking_sepa_credit_transfer/models/account_payment_order.py +++ b/account_banking_sepa_credit_transfer/models/account_payment_order.py @@ -1,9 +1,8 @@ -# -*- coding: utf-8 -*- -# © 2010-2016 Akretion (www.akretion.com) -# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza +# Copyright 2010-2016 Akretion (www.akretion.com) +# Copyright 2014-2018 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -from odoo import models, api, _ +from odoo import _, api, fields, models from odoo.exceptions import UserError from lxml import etree @@ -97,6 +96,7 @@ class AccountPaymentOrder(models.Model): for (requested_date, priority, local_instrument, categ_purpose),\ lines in list(lines_per_group.items()): # B. Payment info + requested_date = fields.Date.to_string(requested_date) payment_info, nb_of_transactions_b, control_sum_b = \ self.generate_start_payment_info_block( pain_root, diff --git a/account_banking_sepa_credit_transfer/post_install.py b/account_banking_sepa_credit_transfer/post_install.py index b7c219e27..5570a35e3 100644 --- a/account_banking_sepa_credit_transfer/post_install.py +++ b/account_banking_sepa_credit_transfer/post_install.py @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- -# © 2016 Akretion (Alexis de Lattre ) +# Copyright 2016 Akretion (Alexis de Lattre ) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, SUPERUSER_ID diff --git a/account_banking_sepa_credit_transfer/readme/CONFIGURE.rst b/account_banking_sepa_credit_transfer/readme/CONFIGURE.rst new file mode 100644 index 000000000..05e8f3b89 --- /dev/null +++ b/account_banking_sepa_credit_transfer/readme/CONFIGURE.rst @@ -0,0 +1,6 @@ +* Create a Payment Mode dedicated to SEPA Credit Transfer. + +* Select the Payment Method *SEPA Credit Transfer to suppliers* (which is + automatically created upon module installation). + +* Check that this payment method uses the proper version of PAIN. diff --git a/account_banking_sepa_credit_transfer/readme/CONTRIBUTORS.rst b/account_banking_sepa_credit_transfer/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..6dd36e660 --- /dev/null +++ b/account_banking_sepa_credit_transfer/readme/CONTRIBUTORS.rst @@ -0,0 +1,12 @@ +* Alexis de Lattre +* Stéphane Bidoul +* Stefan Rijnhart +* Julien Laloux +* Alexandre Fayolle +* Raphaël Valyi +* Erwin van der Ploeg +* Sandy Carter +* `Tecnativa `__: + + * Antonio Espinosa + * Pedro M. Baeza diff --git a/account_banking_sepa_credit_transfer/readme/DESCRIPTION.rst b/account_banking_sepa_credit_transfer/readme/DESCRIPTION.rst new file mode 100644 index 000000000..b03032d82 --- /dev/null +++ b/account_banking_sepa_credit_transfer/readme/DESCRIPTION.rst @@ -0,0 +1,16 @@ +Module to export payment orders in SEPA XML file format. + +SEPA PAIN (PAyment INitiation) is the new european standard for +Customer-to-Bank payment instructions. This module implements SEPA Credit +Transfer (SCT), more specifically PAIN versions 001.001.02, 001.001.03, +001.001.04 and 001.001.05. It is part of the ISO 20022 standard, available on +https://www.iso20022.org. + +The Implementation Guidelines for SEPA Credit Transfer published by the +European Payments Council (https://www.europeanpaymentscouncil.eu) use +PAIN version 001.001.03, so it's probably the version of PAIN that you should +try first. + +It also includes pain.001.003.03 which is used in Germany instead of 001.001.03. +You can read more about this here (only in german language): +http://www.ebics.de/startseite/ diff --git a/account_banking_sepa_credit_transfer/readme/INSTALL.rst b/account_banking_sepa_credit_transfer/readme/INSTALL.rst new file mode 100644 index 000000000..6c1bc3922 --- /dev/null +++ b/account_banking_sepa_credit_transfer/readme/INSTALL.rst @@ -0,0 +1,4 @@ +This module depends on : +* account_banking_pain_base + +This module is part of the OCA/bank-payment suite. diff --git a/account_banking_sepa_credit_transfer/readme/USAGE.rst b/account_banking_sepa_credit_transfer/readme/USAGE.rst new file mode 100644 index 000000000..cdd729aed --- /dev/null +++ b/account_banking_sepa_credit_transfer/readme/USAGE.rst @@ -0,0 +1,3 @@ +In the menu *Invoicing/Accounting > Payments > Payment Order*, create a new +payment order and select the Payment Mode dedicated to SEPA Credit +Transfer that you created during the configuration step. diff --git a/account_banking_sepa_credit_transfer/static/description/index.html b/account_banking_sepa_credit_transfer/static/description/index.html new file mode 100644 index 000000000..277b7daab --- /dev/null +++ b/account_banking_sepa_credit_transfer/static/description/index.html @@ -0,0 +1,468 @@ + + + + + + +Account Banking SEPA Credit Transfer + + + +
+

Account Banking SEPA Credit Transfer

+ + +

Beta License: AGPL-3 OCA/bank-payment Translate me on Weblate Try me on Runbot

+

Module to export payment orders in SEPA XML file format.

+

SEPA PAIN (PAyment INitiation) is the new european standard for +Customer-to-Bank payment instructions. This module implements SEPA Credit +Transfer (SCT), more specifically PAIN versions 001.001.02, 001.001.03, +001.001.04 and 001.001.05. It is part of the ISO 20022 standard, available on +https://www.iso20022.org.

+

The Implementation Guidelines for SEPA Credit Transfer published by the +European Payments Council (https://www.europeanpaymentscouncil.eu) use +PAIN version 001.001.03, so it’s probably the version of PAIN that you should +try first.

+

It also includes pain.001.003.03 which is used in Germany instead of 001.001.03. +You can read more about this here (only in german language): +http://www.ebics.de/startseite/

+

Table of contents

+ +
+

Installation

+

This module depends on : +* account_banking_pain_base

+

This module is part of the OCA/bank-payment suite.

+
+
+

Configuration

+
    +
  • Create a Payment Mode dedicated to SEPA Credit Transfer.
  • +
  • Select the Payment Method SEPA Credit Transfer to suppliers (which is +automatically created upon module installation).
  • +
  • Check that this payment method uses the proper version of PAIN.
  • +
+
+
+

Usage

+

In the menu Invoicing/Accounting > Payments > Payment Order, create a new +payment order and select the Payment Mode dedicated to SEPA Credit +Transfer that you created during the configuration step.

+
+
+

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.

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
  • Tecnativa
  • +
+
+
+

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.

+

This module is part of the OCA/bank-payment project on GitHub.

+

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

+
+
+
+ + diff --git a/account_banking_sepa_credit_transfer/tests/__init__.py b/account_banking_sepa_credit_transfer/tests/__init__.py index 97a8c4298..8b95a582a 100644 --- a/account_banking_sepa_credit_transfer/tests/__init__.py +++ b/account_banking_sepa_credit_transfer/tests/__init__.py @@ -1,3 +1,2 @@ -# -*- coding: utf-8 -*- from . import test_sct diff --git a/account_banking_sepa_credit_transfer/tests/test_sct.py b/account_banking_sepa_credit_transfer/tests/test_sct.py index 06678bfcb..f2547d5b2 100644 --- a/account_banking_sepa_credit_transfer/tests/test_sct.py +++ b/account_banking_sepa_credit_transfer/tests/test_sct.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 Akretion (Alexis de Lattre ) # Copyright 2018 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). @@ -12,8 +11,6 @@ from lxml import etree class TestSCT(common.HttpCase): - post_install = True - at_install = False def setUp(self): super(TestSCT, self).setUp() @@ -36,6 +33,9 @@ class TestSCT(common.HttpCase): 'name': 'Test EUR company', 'currency_id': self.eur_currency.id, }) + self.partner_agrolait.company_id = self.main_company.id + self.partner_asus.company_id = self.main_company.id + self.partner_c2c.company_id = self.main_company.id self.env.user.write({ 'company_ids': [(6, 0, self.main_company.ids)], 'company_id': self.main_company.id, @@ -82,8 +82,7 @@ class TestSCT(common.HttpCase): 'fixed_journal_id': self.bank_journal.id, }) # Trigger the recompute of account type on res.partner.bank - for bank_acc in self.partner_bank_model.search([]): - bank_acc.acc_number = bank_acc.acc_number + self.partner_bank_model.search([])._compute_acc_type() def test_no_pain(self): self.payment_mode.payment_method_id.pain_version = False