diff --git a/l10n_ch_pain_base/README.rst b/l10n_ch_pain_base/README.rst new file mode 100644 index 000000000..410553909 --- /dev/null +++ b/l10n_ch_pain_base/README.rst @@ -0,0 +1,82 @@ +======================= +Switzerland - ISO 20022 +======================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:c1dafe4028d1fbcf7e53729c3b4b2a8ff8ef21aa9fb9558640b991a44bc6fbfa + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fl10n--switzerland-lightgray.png?logo=github + :target: https://github.com/OCA/l10n-switzerland/tree/14.0/l10n_ch_pain_base + :alt: OCA/l10n-switzerland +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/l10n-switzerland-14-0/l10n-switzerland-14-0-l10n_ch_pain_base + :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-switzerland&target_branch=14.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module doesn't do anything by himself. It is the base module for 2 other modules: + +* the module *l10n_ch_pain_credit_transfer* which adds support for the file format *pain.001.001.03.ch.02* which is used for ISO 20022 credit transfers (SEPA or not SEPA), +* the module *l10n_ch_pain_direct_debit* which adds support for the file format *pain.008.001.02.ch.01* which is used for ISO 20022 direct debits. + +**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 +~~~~~~~ + +* Akretion +* Camptocamp + +Contributors +~~~~~~~~~~~~ + +* Alexis de Lattre +* Denis Leemann +* Mykhailo Panarin + +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/l10n-switzerland `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_ch_pain_base/__init__.py b/l10n_ch_pain_base/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/l10n_ch_pain_base/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_ch_pain_base/__manifest__.py b/l10n_ch_pain_base/__manifest__.py new file mode 100644 index 000000000..47735df3a --- /dev/null +++ b/l10n_ch_pain_base/__manifest__.py @@ -0,0 +1,16 @@ +# copyright 2016 Akretion (Alexis de Lattre ) +# copyright 2011 Camptocamp SA (Yannick Vaucher) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Switzerland - ISO 20022", + "summary": "ISO 20022 base module for Switzerland", + "version": "16.0.1.0.0", + "category": "Finance", + "website": "https://github.com/OCA/l10n-switzerland", + "author": "Akretion,Camptocamp,Odoo Community Association (OCA)", + "license": "AGPL-3", + "depends": ["account_banking_pain_base"], + "data": ["views/account_payment_line.xml"], + "installable": True, +} diff --git a/l10n_ch_pain_base/i18n/de.po b/l10n_ch_pain_base/i18n/de.po new file mode 100644 index 000000000..56c16a821 --- /dev/null +++ b/l10n_ch_pain_base/i18n/de.po @@ -0,0 +1,91 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_ch_pain_base +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-04-19 00:40+0000\n" +"PO-Revision-Date: 2018-11-23 22:11+0000\n" +"Last-Translator: chrispi-ch \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" +"X-Generator: Weblate 3.2.2\n" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,local_instrument:0 +msgid "CH01 (ISR)" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_payment_line__communication_type +msgid "Communication Type" +msgstr "" + +#. module: l10n_ch_pain_base +#: code:addons/l10n_ch_pain_base/models/account_payment_order.py:72 +#, python-format +msgid "" +"For pain.001.001.03.ch.02, for non-ISR payments, the BIC is required on the " +"bank '%s' related to the bank account '%s'" +msgstr "" +"Bei pain.001.001.03.ch.02 ist für Nicht-ESR-Zahlungen der BIC zur Bank '%s' " +"des Bankkontos '%s' erforderlich" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,communication_type:0 +msgid "Free" +msgstr "" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,communication_type:0 +msgid "ISO" +msgstr "" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,communication_type:0 +msgid "ISR" +msgstr "" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,local_instrument:0 +msgid "Instant Transfer" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model,name:l10n_ch_pain_base.model_account_move_line +msgid "Journal Item" +msgstr "Journaleintrag" + +#. module: l10n_ch_pain_base +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_payment_line__local_instrument +msgid "Local Instrument" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model,name:l10n_ch_pain_base.model_account_payment_line +msgid "Payment Lines" +msgstr "Zahlungszeilen" + +#. module: l10n_ch_pain_base +#: model:ir.model,name:l10n_ch_pain_base.model_account_payment_order +msgid "Payment Order" +msgstr "Zahlungsauftrag" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,communication_type:0 +msgid "QRR" +msgstr "" + +#. module: l10n_ch_pain_base +#: code:addons/l10n_ch_pain_base/models/account_payment_order.py:90 +#, fuzzy, python-format +msgid "The field 'Postal account' is not set on the bank account '%s'." +msgstr "Das Feld 'Postkonto' ist beim Bankkonto '%s' nicht gesetzt." diff --git a/l10n_ch_pain_base/i18n/fr.po b/l10n_ch_pain_base/i18n/fr.po new file mode 100644 index 000000000..e8bea309f --- /dev/null +++ b/l10n_ch_pain_base/i18n/fr.po @@ -0,0 +1,92 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_ch_pain_base +# +# Translators: +# leemannd , 2017 +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-01 03:54+0000\n" +"PO-Revision-Date: 2019-08-14 09:44+0000\n" +"Last-Translator: Valaeys Stéphane \n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\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 3.7.1\n" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,local_instrument:0 +msgid "CH01 (ISR)" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_payment_line__communication_type +msgid "Communication Type" +msgstr "" + +#. module: l10n_ch_pain_base +#: code:addons/l10n_ch_pain_base/models/account_payment_order.py:72 +#, python-format +msgid "" +"For pain.001.001.03.ch.02, for non-ISR payments, the BIC is required on the " +"bank '%s' related to the bank account '%s'" +msgstr "" +"Pour pain.001.001.03.ch.02 et les paiements non-BVR, le BIC est requis sur " +"les Banques '%s' lié au compte bancaire '%s'" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,communication_type:0 +msgid "Free" +msgstr "" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,communication_type:0 +msgid "ISO" +msgstr "" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,communication_type:0 +msgid "ISR" +msgstr "" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,local_instrument:0 +msgid "Instant Transfer" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model,name:l10n_ch_pain_base.model_account_move_line +msgid "Journal Item" +msgstr "Écriture comptable" + +#. module: l10n_ch_pain_base +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_payment_line__local_instrument +msgid "Local Instrument" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model,name:l10n_ch_pain_base.model_account_payment_line +msgid "Payment Lines" +msgstr "Lignes de Paiement" + +#. module: l10n_ch_pain_base +#: model:ir.model,name:l10n_ch_pain_base.model_account_payment_order +msgid "Payment Order" +msgstr "Ordre de paiement" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,communication_type:0 +msgid "QRR" +msgstr "" + +#. module: l10n_ch_pain_base +#: code:addons/l10n_ch_pain_base/models/account_payment_order.py:90 +#, fuzzy, python-format +msgid "The field 'Postal account' is not set on the bank account '%s'." +msgstr "Le champ 'CCP' n'est pas défini sur le compte bancaire '%s'." diff --git a/l10n_ch_pain_base/i18n/it.po b/l10n_ch_pain_base/i18n/it.po new file mode 100644 index 000000000..58c49c548 --- /dev/null +++ b/l10n_ch_pain_base/i18n/it.po @@ -0,0 +1,89 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_ch_pain_base +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-03 03:39+0000\n" +"PO-Revision-Date: 2024-02-23 14:37+0000\n" +"Last-Translator: mymage \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.17\n" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,local_instrument:0 +msgid "CH01 (ISR)" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_payment_line__communication_type +msgid "Communication Type" +msgstr "" + +#. module: l10n_ch_pain_base +#: code:addons/l10n_ch_pain_base/models/account_payment_order.py:72 +#, python-format +msgid "" +"For pain.001.001.03.ch.02, for non-ISR payments, the BIC is required on the " +"bank '%s' related to the bank account '%s'" +msgstr "" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,communication_type:0 +msgid "Free" +msgstr "" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,communication_type:0 +msgid "ISO" +msgstr "" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,communication_type:0 +msgid "ISR" +msgstr "" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,local_instrument:0 +msgid "Instant Transfer" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model,name:l10n_ch_pain_base.model_account_move_line +msgid "Journal Item" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_payment_line__local_instrument +msgid "Local Instrument" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model,name:l10n_ch_pain_base.model_account_payment_line +msgid "Payment Lines" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model,name:l10n_ch_pain_base.model_account_payment_order +msgid "Payment Order" +msgstr "Ordine di pagamento" + +#. module: l10n_ch_pain_base +#: selection:account.payment.line,communication_type:0 +msgid "QRR" +msgstr "" + +#. module: l10n_ch_pain_base +#: code:addons/l10n_ch_pain_base/models/account_payment_order.py:90 +#, python-format +msgid "The field 'Postal account' is not set on the bank account '%s'." +msgstr "" diff --git a/l10n_ch_pain_base/i18n/l10n_ch_pain_base.pot b/l10n_ch_pain_base/i18n/l10n_ch_pain_base.pot new file mode 100644 index 000000000..1fc54839f --- /dev/null +++ b/l10n_ch_pain_base/i18n/l10n_ch_pain_base.pot @@ -0,0 +1,89 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_ch_pain_base +# +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_ch_pain_base +#: model:ir.model.fields.selection,name:l10n_ch_pain_base.selection__account_payment_line__local_instrument__ch01 +msgid "CH01 (ISR)" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_payment_line__communication_type +msgid "Communication Type" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_move_line__display_name +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_payment_line__display_name +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_payment_order__display_name +msgid "Display Name" +msgstr "" + +#. module: l10n_ch_pain_base +#: code:addons/l10n_ch_pain_base/models/account_payment_order.py:0 +#, python-format +msgid "" +"For pain.001.001.03.ch.02, for non-ISR payments, the BIC is required on the " +"bank '%s' related to the bank account '%s'" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_move_line__id +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_payment_line__id +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_payment_order__id +msgid "ID" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model.fields.selection,name:l10n_ch_pain_base.selection__account_payment_line__communication_type__isr +msgid "ISR" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model,name:l10n_ch_pain_base.model_account_move_line +msgid "Journal Item" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_move_line____last_update +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_payment_line____last_update +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_payment_order____last_update +msgid "Last Modified on" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model.fields,field_description:l10n_ch_pain_base.field_account_payment_line__local_instrument +msgid "Local Instrument" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model,name:l10n_ch_pain_base.model_account_payment_line +msgid "Payment Lines" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model,name:l10n_ch_pain_base.model_account_payment_order +msgid "Payment Order" +msgstr "" + +#. module: l10n_ch_pain_base +#: model:ir.model.fields.selection,name:l10n_ch_pain_base.selection__account_payment_line__communication_type__qrr +msgid "QRR" +msgstr "" + +#. module: l10n_ch_pain_base +#: code:addons/l10n_ch_pain_base/models/account_payment_order.py:0 +#, python-format +msgid "The field 'Postal account' is not set on the bank account '%s'." +msgstr "" diff --git a/l10n_ch_pain_base/models/__init__.py b/l10n_ch_pain_base/models/__init__.py new file mode 100644 index 000000000..065d5b2d3 --- /dev/null +++ b/l10n_ch_pain_base/models/__init__.py @@ -0,0 +1,3 @@ +from . import account_payment_order +from . import account_payment_line +from . import account_move_line diff --git a/l10n_ch_pain_base/models/account_move_line.py b/l10n_ch_pain_base/models/account_move_line.py new file mode 100644 index 000000000..bcf642b65 --- /dev/null +++ b/l10n_ch_pain_base/models/account_move_line.py @@ -0,0 +1,19 @@ +# copyright 2016 Akretion (Alexis de Lattre ) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import models + + +class AccountMoveLine(models.Model): + _inherit = "account.move.line" + + def _prepare_payment_line_vals(self, payment_order): + vals = super()._prepare_payment_line_vals(payment_order) + if ( + self.move_id + and self.move_id._has_isr_ref() + and self.move_id.partner_bank_id + ): + vals["communication_type"] = "qrr" + vals["communication"] = self.move_id.payment_reference.replace(" ", "") + return vals diff --git a/l10n_ch_pain_base/models/account_payment_line.py b/l10n_ch_pain_base/models/account_payment_line.py new file mode 100644 index 000000000..5132254c0 --- /dev/null +++ b/l10n_ch_pain_base/models/account_payment_line.py @@ -0,0 +1,13 @@ +# copyright 2016 Akretion - Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class AccountPaymentLine(models.Model): + _inherit = "account.payment.line" + + communication_type = fields.Selection( + selection_add=[("qrr", "QRR")], + ondelete={ "qrr": "set default"}, + ) diff --git a/l10n_ch_pain_base/models/account_payment_order.py b/l10n_ch_pain_base/models/account_payment_order.py new file mode 100644 index 000000000..064b83681 --- /dev/null +++ b/l10n_ch_pain_base/models/account_payment_order.py @@ -0,0 +1,70 @@ +# copyright 2016 Akretion (www.akretion.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from lxml import etree + +from odoo import _, api, models +from odoo.exceptions import UserError + +ACCEPTED_PAIN_FLAVOURS = ("pain.001.001.03.ch.02", "pain.008.001.02.ch.03") + +class AccountPaymentOrder(models.Model): + _inherit = "account.payment.order" + + def compute_sepa_final_hook(self, sepa): + self.ensure_one() + sepa = super().compute_sepa_final_hook(sepa) + pain_flavor = self.payment_mode_id.payment_method_id.pain_version + # ISR orders cannot be SEPA orders + if pain_flavor and ".ch." in pain_flavor: + sepa = False + return sepa + + def generate_pain_nsmap(self): + self.ensure_one() + nsmap = super().generate_pain_nsmap() + pain_flavor = self.payment_mode_id.payment_method_id.pain_version + if pain_flavor in ACCEPTED_PAIN_FLAVOURS: + nsmap[None] = ( + "http://www.six-interbank-clearing.com/de/%s.xsd" % pain_flavor + ) + + return nsmap + + def generate_pain_attrib(self): + self.ensure_one() + pain_flavor = self.payment_mode_id.payment_method_id.pain_version + if pain_flavor in ACCEPTED_PAIN_FLAVOURS: + attrib = { + "{http://www.w3.org/2001/XMLSchema-instance}" + "schemaLocation": "http://www.six-interbank-clearing.com/de/%s.xsd %s.xsd" + % (pain_flavor, pain_flavor) + } + return attrib + else: + return super().generate_pain_attrib() + + + @api.model + def generate_remittance_info_block(self, parent_node, line, gen_args): + if line.payment_line_ids[:1].communication_type == "qrr": + remittance_info = etree.SubElement(parent_node, "RmtInf") + remittance_info_structured = etree.SubElement(remittance_info, "Strd") + creditor_ref_information = etree.SubElement( + remittance_info_structured, "CdtrRefInf" + ) + creditor_ref_info_type = etree.SubElement(creditor_ref_information, "Tp") + creditor_ref_info_type_or = etree.SubElement( + creditor_ref_info_type, "CdOrPrtry" + ) + creditor_ref_info_type_code = etree.SubElement( + creditor_ref_info_type_or, "Prtry" + ) + creditor_ref_info_type_code.text = "QRR" + creditor_reference = etree.SubElement(creditor_ref_information, "Ref") + creditor_reference.text = line.payment_line_ids[0].communication + # to uncomment when schema pain.001.001.09.ch.03 is implemented in account_banking_pain_base + # remittance_info_structured = etree.SubElement(remittance_info, "AddtlRmtInf") + # remittance_info_structured.text = line.payment_line_ids[0].move_line_id.move_id.ref or "" + else: + super().generate_remittance_info_block(parent_node, line, gen_args) diff --git a/l10n_ch_pain_base/readme/CONTRIBUTORS.rst b/l10n_ch_pain_base/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..4f35f64a5 --- /dev/null +++ b/l10n_ch_pain_base/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* Alexis de Lattre +* Denis Leemann +* Mykhailo Panarin diff --git a/l10n_ch_pain_base/readme/DESCRIPTION.rst b/l10n_ch_pain_base/readme/DESCRIPTION.rst new file mode 100644 index 000000000..be01b0c7c --- /dev/null +++ b/l10n_ch_pain_base/readme/DESCRIPTION.rst @@ -0,0 +1,4 @@ +This module doesn't do anything by himself. It is the base module for 2 other modules: + +* the module *l10n_ch_pain_credit_transfer* which adds support for the file format *pain.001.001.03.ch.02* which is used for ISO 20022 credit transfers (SEPA or not SEPA), +* the module *l10n_ch_pain_direct_debit* which adds support for the file format *pain.008.001.02.ch.01* which is used for ISO 20022 direct debits. diff --git a/l10n_ch_pain_base/static/description/icon.png b/l10n_ch_pain_base/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/l10n_ch_pain_base/static/description/icon.png differ diff --git a/l10n_ch_pain_base/static/description/index.html b/l10n_ch_pain_base/static/description/index.html new file mode 100644 index 000000000..5ba18d282 --- /dev/null +++ b/l10n_ch_pain_base/static/description/index.html @@ -0,0 +1,428 @@ + + + + + + +Switzerland - ISO 20022 + + + +
+

Switzerland - ISO 20022

+ + +

Beta License: AGPL-3 OCA/l10n-switzerland Translate me on Weblate Try me on Runboat

+

This module doesn’t do anything by himself. It is the base module for 2 other modules:

+
    +
  • the module l10n_ch_pain_credit_transfer which adds support for the file format pain.001.001.03.ch.02 which is used for ISO 20022 credit transfers (SEPA or not SEPA),
  • +
  • the module l10n_ch_pain_direct_debit which adds support for the file format pain.008.001.02.ch.01 which is used for ISO 20022 direct debits.
  • +
+

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

+
    +
  • Akretion
  • +
  • Camptocamp
  • +
+
+
+

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/l10n-switzerland project on GitHub.

+

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

+
+
+
+ + diff --git a/l10n_ch_pain_base/views/account_payment_line.xml b/l10n_ch_pain_base/views/account_payment_line.xml new file mode 100644 index 000000000..58c406ec6 --- /dev/null +++ b/l10n_ch_pain_base/views/account_payment_line.xml @@ -0,0 +1,22 @@ + + + + + + l10n_ch_sepa.account.payment.line + account.payment.line + + + + 0 + + + + +