From a2884e30116ec27cd4926e472eb087322a19d529 Mon Sep 17 00:00:00 2001 From: Carlos Roca Date: Thu, 24 Dec 2020 13:36:55 +0100 Subject: [PATCH] [MIG] account_banking_pain_base: Migration to v14 --- account_banking_pain_base/README.rst | 15 +++++++++------ account_banking_pain_base/__manifest__.py | 5 +++-- .../models/account_payment_line.py | 9 ++++++--- .../models/account_payment_method.py | 2 +- .../models/account_payment_mode.py | 6 +++--- .../models/account_payment_order.py | 11 ++++++----- .../models/bank_payment_line.py | 7 +++---- account_banking_pain_base/models/res_company.py | 6 +++--- account_banking_pain_base/readme/CONTRIBUTORS.rst | 5 ++++- .../static/description/index.html | 14 +++++++++----- 10 files changed, 47 insertions(+), 33 deletions(-) diff --git a/account_banking_pain_base/README.rst b/account_banking_pain_base/README.rst index ed3e12b30..2373f360d 100644 --- a/account_banking_pain_base/README.rst +++ b/account_banking_pain_base/README.rst @@ -14,13 +14,13 @@ Account Banking PAIN Base Module :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/13.0/account_banking_pain_base + :target: https://github.com/OCA/bank-payment/tree/14.0/account_banking_pain_base :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-13-0/bank-payment-13-0-account_banking_pain_base + :target: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_banking_pain_base :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/13.0 + :target: https://runbot.odoo-community.org/runbot/173/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -74,7 +74,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -92,7 +92,6 @@ Contributors ~~~~~~~~~~~~ * Alexis de Lattre -* Pedro M. Baeza * Stéphane Bidoul * Ignacio Ibeas - Acysos S.L. * Alexandre Fayolle @@ -103,6 +102,10 @@ Contributors * `DynApps NV `_: * Axel Priem +* `Tecnativa `_: + + * Pedro M. Baeza + * Carlos Roca Maintainers ~~~~~~~~~~~ @@ -117,6 +120,6 @@ 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. +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_pain_base/__manifest__.py b/account_banking_pain_base/__manifest__.py index d354ce38d..98bbad662 100644 --- a/account_banking_pain_base/__manifest__.py +++ b/account_banking_pain_base/__manifest__.py @@ -1,14 +1,15 @@ # Copyright 2013-2016 Akretion - Alexis de Lattre # Copyright 2014-2017 Tecnativa - Pedro M. Baeza # Copyright 2016 Tecnativa - Antonio Espinosa +# Copyright 2021 Tecnativa - Carlos Roca # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Account Banking PAIN Base Module", "summary": "Base module for PAIN file generation", - "version": "13.0.1.0.1", + "version": "14.0.1.0.0", "license": "AGPL-3", - "author": "Akretion, " "Noviat, " "Tecnativa, " "Odoo Community Association (OCA)", + "author": "Akretion, Noviat, Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/bank-payment", "category": "Hidden", "depends": ["account_payment_order"], diff --git a/account_banking_pain_base/models/account_payment_line.py b/account_banking_pain_base/models/account_payment_line.py index 003c5a760..e62dc92b4 100644 --- a/account_banking_pain_base/models/account_payment_line.py +++ b/account_banking_pain_base/models/account_payment_line.py @@ -1,5 +1,6 @@ -# © 2013-2016 Akretion - Alexis de Lattre -# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza +# Copyright 2013-2016 Akretion - Alexis de Lattre +# Copyright 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza +# Copyright 2021 Tecnativa - Carlos Roca # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import fields, models @@ -169,4 +170,6 @@ class AccountPaymentLine(models.Model): # The field struct_communication_type has been dropped in v9 # We now use communication_type ; you should add an option # in communication_type with selection_add=[] - communication_type = fields.Selection(selection_add=[("ISO", "ISO")]) + communication_type = fields.Selection( + selection_add=[("ISO", "ISO")], ondelete={"ISO": "cascade"} + ) diff --git a/account_banking_pain_base/models/account_payment_method.py b/account_banking_pain_base/models/account_payment_method.py index e06918ac4..067468c81 100644 --- a/account_banking_pain_base/models/account_payment_method.py +++ b/account_banking_pain_base/models/account_payment_method.py @@ -1,4 +1,4 @@ -# © 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 _, fields, models diff --git a/account_banking_pain_base/models/account_payment_mode.py b/account_banking_pain_base/models/account_payment_mode.py index 9b3a71d92..139efdfe2 100644 --- a/account_banking_pain_base/models/account_payment_mode.py +++ b/account_banking_pain_base/models/account_payment_mode.py @@ -1,6 +1,6 @@ -# © 2013-2016 Akretion - Alexis de Lattre -# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza -# © 2016 Antiun Ingenieria S.L. - Antonio Espinosa +# Copyright 2013-2016 Akretion - Alexis de Lattre +# Copyright 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza +# Copyright 2016 Antiun Ingenieria S.L. - Antonio Espinosa # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import fields, models diff --git a/account_banking_pain_base/models/account_payment_order.py b/account_banking_pain_base/models/account_payment_order.py index 30d943393..9e35926e6 100644 --- a/account_banking_pain_base/models/account_payment_order.py +++ b/account_banking_pain_base/models/account_payment_order.py @@ -1,6 +1,7 @@ -# © 2013-2016 Akretion - Alexis de Lattre -# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza -# © 2016 Antiun Ingenieria S.L. - Antonio Espinosa +# Copyright 2013-2016 Akretion - Alexis de Lattre +# Copyright 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza +# Copyright 2016 Antiun Ingenieria S.L. - Antonio Espinosa +# Copyright 2021 Tecnativa - Carlos Roca # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). import logging @@ -35,7 +36,7 @@ class AccountPaymentOrder(models.Model): default="SLEV", readonly=True, states={"draft": [("readonly", False)], "open": [("readonly", False)]}, - track_visibility="onchange", + tracking=True, help="Following service level : transaction charges are to be " "applied following the rules agreed in the service level " "and/or scheme (SEPA Core messages must use this). Shared : " @@ -50,7 +51,7 @@ class AccountPaymentOrder(models.Model): string="Batch Booking", readonly=True, states={"draft": [("readonly", False)], "open": [("readonly", False)]}, - track_visibility="onchange", + 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 " "false, the bank statement will display one debit line per wire " diff --git a/account_banking_pain_base/models/bank_payment_line.py b/account_banking_pain_base/models/bank_payment_line.py index 42f891dd2..0079b5fda 100644 --- a/account_banking_pain_base/models/bank_payment_line.py +++ b/account_banking_pain_base/models/bank_payment_line.py @@ -1,4 +1,5 @@ -# © 2013-2016 Akretion - Alexis de Lattre +# Copyright 2013-2016 Akretion - Alexis de Lattre +# Copyright 2021 Tecnativa - Carlos Roca # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models @@ -18,8 +19,6 @@ class BankPaymentLine(models.Model): @api.model def same_fields_payment_line_and_bank_payment_line(self): - res = super( - BankPaymentLine, self - ).same_fields_payment_line_and_bank_payment_line() + res = super().same_fields_payment_line_and_bank_payment_line() res += ["priority", "local_instrument", "category_purpose", "purpose"] return res diff --git a/account_banking_pain_base/models/res_company.py b/account_banking_pain_base/models/res_company.py index 606808a3a..86f812765 100644 --- a/account_banking_pain_base/models/res_company.py +++ b/account_banking_pain_base/models/res_company.py @@ -1,6 +1,6 @@ -# © 2013-2016 Akretion - Alexis de Lattre -# © 2013 Noviat (http://www.noviat.com) - Luc de Meyer -# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza +# Copyright 2013-2016 Akretion - Alexis de Lattre +# Copyright 2013 Noviat (http://www.noviat.com) - Luc de Meyer +# Copyright 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). import logging diff --git a/account_banking_pain_base/readme/CONTRIBUTORS.rst b/account_banking_pain_base/readme/CONTRIBUTORS.rst index c66e5e824..c878ad094 100644 --- a/account_banking_pain_base/readme/CONTRIBUTORS.rst +++ b/account_banking_pain_base/readme/CONTRIBUTORS.rst @@ -1,5 +1,4 @@ * Alexis de Lattre -* Pedro M. Baeza * Stéphane Bidoul * Ignacio Ibeas - Acysos S.L. * Alexandre Fayolle @@ -10,3 +9,7 @@ * `DynApps NV `_: * Axel Priem +* `Tecnativa `_: + + * Pedro M. Baeza + * Carlos Roca diff --git a/account_banking_pain_base/static/description/index.html b/account_banking_pain_base/static/description/index.html index cbd2eecec..0a7de9b33 100644 --- a/account_banking_pain_base/static/description/index.html +++ b/account_banking_pain_base/static/description/index.html @@ -3,7 +3,7 @@ - + Account Banking PAIN Base Module