From 629458797c2cefa7871d05fc7c1ba72620f95400 Mon Sep 17 00:00:00 2001 From: trisdoan Date: Mon, 4 Mar 2024 17:45:52 +0700 Subject: [PATCH] [MIG] account_banking_pain_base: Migration to 17.0 --- account_banking_pain_base/README.rst | 10 +++++ account_banking_pain_base/__manifest__.py | 2 +- .../models/account_payment_order.py | 8 +--- account_banking_pain_base/post_install.py | 6 +-- .../readme/CONTRIBUTORS.md | 2 + account_banking_pain_base/readme/CREDITS.md | 2 + .../static/description/index.html | 15 +++++-- .../views/account_payment_method.xml | 10 +---- .../views/account_payment_order.xml | 12 +++--- .../views/res_config_settings.xml | 43 ++++++------------- 10 files changed, 49 insertions(+), 61 deletions(-) create mode 100644 account_banking_pain_base/readme/CREDITS.md diff --git a/account_banking_pain_base/README.rst b/account_banking_pain_base/README.rst index b0f8d0bd3..6ae477b95 100644 --- a/account_banking_pain_base/README.rst +++ b/account_banking_pain_base/README.rst @@ -117,6 +117,16 @@ Contributors - Manuel Regidor +- `Trobz `__: + + - Tris Doan + +Other credits +------------- + +The migration of this module from 16.0 to 17.0 was financially supported +by Camptocamp + Maintainers ----------- diff --git a/account_banking_pain_base/__manifest__.py b/account_banking_pain_base/__manifest__.py index 192f16ed0..b5ab5a3c4 100644 --- a/account_banking_pain_base/__manifest__.py +++ b/account_banking_pain_base/__manifest__.py @@ -7,7 +7,7 @@ { "name": "Account Banking PAIN Base Module", "summary": "Base module for PAIN file generation", - "version": "16.0.1.1.0", + "version": "17.0.1.0.0", "license": "AGPL-3", "author": "Akretion, Noviat, Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/bank-payment", diff --git a/account_banking_pain_base/models/account_payment_order.py b/account_banking_pain_base/models/account_payment_order.py index 990507247..3089277cb 100644 --- a/account_banking_pain_base/models/account_payment_order.py +++ b/account_banking_pain_base/models/account_payment_order.py @@ -38,8 +38,6 @@ class AccountPaymentOrder(models.Model): ("DEBT", "Borne by Debtor"), ], default="SLEV", - readonly=True, - states={"draft": [("readonly", False)], "open": [("readonly", False)]}, tracking=True, help="Following service level : transaction charges are to be " "applied following the rules agreed in the service level " @@ -52,8 +50,6 @@ class AccountPaymentOrder(models.Model): "debtor.", ) batch_booking = fields.Boolean( - readonly=True, - states={"draft": [("readonly", False)], "open": [("readonly", False)]}, tracking=True, help="If true, the bank statement will display only one debit " "line for all the wire transfers of the SEPA XML file ; if " @@ -64,7 +60,7 @@ class AccountPaymentOrder(models.Model): @api.model def _sepa_iban_prefix_list(self): # List of IBAN prefixes (not country codes !) - # Source: https://www.europeanpaymentscouncil.eu/sites/default/files/kb/file/2023-01/EPC409-09%20EPC%20List%20of%20SEPA%20Scheme%20Countries%20v4.0_0.pdf # noqa: B950 + # Source: https://www.europeanpaymentscouncil.eu/sites/default/files/kb/file/2023-01/ EPC409-09%20EPC%20List%20of%20SEPA%20Scheme%20Countries%20v4.0_0.pdf # noqa: E501 # Some countries use IBAN but are not part of the SEPA zone # example: Turkey, Madagascar, Tunisia, etc. return [ @@ -230,7 +226,7 @@ class AccountPaymentOrder(models.Model): if not isinstance(value, str): raise UserError( _( - "The type of the field '%(field)s' is %(value)s. It should be a string " + "The type of the field '%(field)s' is %(value)s. It should be a string " # noqa: E501 "or unicode.", field=field_name, value=type(value), diff --git a/account_banking_pain_base/post_install.py b/account_banking_pain_base/post_install.py index 2ada23094..4a73866cd 100644 --- a/account_banking_pain_base/post_install.py +++ b/account_banking_pain_base/post_install.py @@ -2,11 +2,7 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -from odoo import SUPERUSER_ID, api - - -def set_default_initiating_party(cr, registry): - env = api.Environment(cr, SUPERUSER_ID, {}) +def set_default_initiating_party(env): for company in env["res.company"].search([]): company._default_initiating_party() return diff --git a/account_banking_pain_base/readme/CONTRIBUTORS.md b/account_banking_pain_base/readme/CONTRIBUTORS.md index 3fcf29495..de3a2bb31 100644 --- a/account_banking_pain_base/readme/CONTRIBUTORS.md +++ b/account_banking_pain_base/readme/CONTRIBUTORS.md @@ -13,3 +13,5 @@ - Carlos Roca - [Sygel](https://www.sygel.es): - Manuel Regidor +- [Trobz](https://www.trobz.com): + - Tris Doan \<\> diff --git a/account_banking_pain_base/readme/CREDITS.md b/account_banking_pain_base/readme/CREDITS.md new file mode 100644 index 000000000..7c48f8e03 --- /dev/null +++ b/account_banking_pain_base/readme/CREDITS.md @@ -0,0 +1,2 @@ +The migration of this module from 16.0 to 17.0 was financially supported +by Camptocamp diff --git a/account_banking_pain_base/static/description/index.html b/account_banking_pain_base/static/description/index.html index 4f2196e52..191176645 100644 --- a/account_banking_pain_base/static/description/index.html +++ b/account_banking_pain_base/static/description/index.html @@ -1,4 +1,3 @@ - @@ -386,7 +385,8 @@ November 21st 2013 in Epiais les Louvres (France).

  • Credits
  • @@ -464,10 +464,19 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
  • Manuel Regidor
  • +
  • Trobz: +
  • +
    +

    Other credits

    +

    The migration of this module from 16.0 to 17.0 was financially supported +by Camptocamp

    +
    -

    Maintainers

    +

    Maintainers

    This module is maintained by the OCA.

    Odoo Community Association

    OCA, or the Odoo Community Association, is a nonprofit organization whose diff --git a/account_banking_pain_base/views/account_payment_method.xml b/account_banking_pain_base/views/account_payment_method.xml index de0fd0127..4cea824ba 100644 --- a/account_banking_pain_base/views/account_payment_method.xml +++ b/account_banking_pain_base/views/account_payment_method.xml @@ -11,14 +11,8 @@ - - + + diff --git a/account_banking_pain_base/views/account_payment_order.xml b/account_banking_pain_base/views/account_payment_order.xml index ff88a22b5..ed072b32c 100644 --- a/account_banking_pain_base/views/account_payment_order.xml +++ b/account_banking_pain_base/views/account_payment_order.xml @@ -13,23 +13,21 @@ /> - + - +