From ad90a0054c3f23848e9b09f502eed673c521285f Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 5 May 2023 15:53:55 +0200 Subject: [PATCH] [MIG] l10n_ch_pain_credit_transfer: Migration to 14.0 --- l10n_ch_pain_credit_transfer/README.rst | 35 ++-- l10n_ch_pain_credit_transfer/__manifest__.py | 1 + .../models/account_payment_method.py | 3 +- .../readme/CONTRIBUTORS.rst | 1 + l10n_ch_pain_credit_transfer/readme/USAGE.rst | 3 - .../static/description/index.html | 51 ++--- .../tests/test_ch_sct.py | 194 +++++++++--------- 7 files changed, 150 insertions(+), 138 deletions(-) diff --git a/l10n_ch_pain_credit_transfer/README.rst b/l10n_ch_pain_credit_transfer/README.rst index 29d72bdf2..a90a06746 100644 --- a/l10n_ch_pain_credit_transfer/README.rst +++ b/l10n_ch_pain_credit_transfer/README.rst @@ -2,10 +2,13 @@ Switzerland - PAIN Credit Transfer ================================== -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:dcdd9d8807816c0392d729de3b0c60c6717aa2ffad6485b4b032502cb7f7aebb + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -14,16 +17,16 @@ Switzerland - PAIN Credit Transfer :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/12.0/l10n_ch_pain_credit_transfer + :target: https://github.com/OCA/l10n-switzerland/tree/14.0/l10n_ch_pain_credit_transfer :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-12-0/l10n-switzerland-12-0-l10n_ch_pain_credit_transfer + :target: https://translation.odoo-community.org/projects/l10n-switzerland-14-0/l10n-switzerland-14-0-l10n_ch_pain_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/125/12.0 - :alt: Try me on Runbot +.. |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| +|badge1| |badge2| |badge3| |badge4| |badge5| This module adds support for *pain.001.001.03.ch.02* which is used for ISO 20022 credit transfers in Switzerland (SEPA or not SEPA). @@ -44,9 +47,6 @@ set the *PAIN Version* to *pain.001.001.03.ch.02 (credit transfer in Switzerland Usage ===== -On the payment order, you will see a new computed boolean field named -*ISR* which shows if the payment order is BVR or not. - This module doesn't modify the standard usage of the modules *account_payment_order* and *account_banking_sepa_credit_transfer*. @@ -55,8 +55,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 `_. +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. @@ -75,6 +75,7 @@ Contributors * Alexis de Lattre * Denis Leemann * Mykhailo Panarin +* Emanuel Cino Maintainers ~~~~~~~~~~~ @@ -89,6 +90,14 @@ 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. +.. |maintainer-ecino| image:: https://github.com/ecino.png?size=40px + :target: https://github.com/ecino + :alt: ecino + +Current `maintainer `__: + +|maintainer-ecino| + +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_credit_transfer/__manifest__.py b/l10n_ch_pain_credit_transfer/__manifest__.py index afb02a3a0..c6212b1d5 100644 --- a/l10n_ch_pain_credit_transfer/__manifest__.py +++ b/l10n_ch_pain_credit_transfer/__manifest__.py @@ -7,6 +7,7 @@ "version": "14.0.1.0.0", "category": "Finance", "author": "Akretion,Camptocamp,Odoo Community Association (OCA)", + "maintainers": ["ecino"], "license": "AGPL-3", "website": "https://github.com/OCA/l10n-switzerland", "depends": [ diff --git a/l10n_ch_pain_credit_transfer/models/account_payment_method.py b/l10n_ch_pain_credit_transfer/models/account_payment_method.py index d6e0e85e9..5c7bf8323 100644 --- a/l10n_ch_pain_credit_transfer/models/account_payment_method.py +++ b/l10n_ch_pain_credit_transfer/models/account_payment_method.py @@ -13,7 +13,8 @@ class AccountPaymentMethod(models.Model): "pain.001.001.03.ch.02", "pain.001.001.03.ch.02 (credit transfer in Switzerland)", ), - ] + ], + ondelete={"pain.001.001.03.ch.02": "set null"}, ) def get_xsd_file_path(self): diff --git a/l10n_ch_pain_credit_transfer/readme/CONTRIBUTORS.rst b/l10n_ch_pain_credit_transfer/readme/CONTRIBUTORS.rst index 4f35f64a5..9356af4df 100644 --- a/l10n_ch_pain_credit_transfer/readme/CONTRIBUTORS.rst +++ b/l10n_ch_pain_credit_transfer/readme/CONTRIBUTORS.rst @@ -1,3 +1,4 @@ * Alexis de Lattre * Denis Leemann * Mykhailo Panarin +* Emanuel Cino diff --git a/l10n_ch_pain_credit_transfer/readme/USAGE.rst b/l10n_ch_pain_credit_transfer/readme/USAGE.rst index baa7a7412..c11330b29 100644 --- a/l10n_ch_pain_credit_transfer/readme/USAGE.rst +++ b/l10n_ch_pain_credit_transfer/readme/USAGE.rst @@ -1,5 +1,2 @@ -On the payment order, you will see a new computed boolean field named -*ISR* which shows if the payment order is BVR or not. - This module doesn't modify the standard usage of the modules *account_payment_order* and *account_banking_sepa_credit_transfer*. diff --git a/l10n_ch_pain_credit_transfer/static/description/index.html b/l10n_ch_pain_credit_transfer/static/description/index.html index ea9caa1c0..0d71d4d36 100644 --- a/l10n_ch_pain_credit_transfer/static/description/index.html +++ b/l10n_ch_pain_credit_transfer/static/description/index.html @@ -1,20 +1,20 @@ - + - + Switzerland - PAIN Credit Transfer