diff --git a/account_banking_mandate/README.rst b/account_banking_mandate/README.rst index a18f6344c..dd05cd154 100644 --- a/account_banking_mandate/README.rst +++ b/account_banking_mandate/README.rst @@ -14,14 +14,14 @@ Account Banking Mandate :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/15.0/account_banking_mandate + :target: https://github.com/OCA/bank-payment/tree/16.0/account_banking_mandate :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-15-0/bank-payment-15-0-account_banking_mandate + :target: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_banking_mandate :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/15.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/bank-payment&target_branch=16.0 + :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -58,7 +58,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. @@ -71,6 +71,7 @@ Authors * Compassion CH * Tecnativa * Akretion +* Therp B.V. Contributors ~~~~~~~~~~~~ @@ -85,6 +86,8 @@ Contributors * Marçal Isern * Andrea Stirpe * Manuel Regidor +* Giovanni Francesco Capalbo + Maintainers ~~~~~~~~~~~ @@ -99,6 +102,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_mandate/__manifest__.py b/account_banking_mandate/__manifest__.py index bd4302b5c..103407439 100644 --- a/account_banking_mandate/__manifest__.py +++ b/account_banking_mandate/__manifest__.py @@ -7,12 +7,13 @@ { "name": "Account Banking Mandate", "summary": "Banking mandates", - "version": "15.0.1.0.1", + "version": "16.0.1.0.0", "development_status": "Production/Stable", "license": "AGPL-3", "author": "Compassion CH, " "Tecnativa, " "Akretion, " + "Therp B.V., " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/bank-payment", "category": "Banking addons", @@ -24,7 +25,6 @@ "views/account_payment_line.xml", "views/res_partner_bank_view.xml", "views/res_partner.xml", - "views/bank_payment_line_view.xml", "data/mandate_reference_sequence.xml", "security/mandate_security.xml", "security/ir.model.access.csv", diff --git a/account_banking_mandate/models/__init__.py b/account_banking_mandate/models/__init__.py index 096b524b8..0de456248 100644 --- a/account_banking_mandate/models/__init__.py +++ b/account_banking_mandate/models/__init__.py @@ -4,5 +4,4 @@ from . import account_move from . import res_partner_bank from . import res_partner from . import account_payment_line -from . import bank_payment_line from . import account_move_line diff --git a/account_banking_mandate/models/account_banking_mandate.py b/account_banking_mandate/models/account_banking_mandate.py index 3ea1e5751..64626675a 100644 --- a/account_banking_mandate/models/account_banking_mandate.py +++ b/account_banking_mandate/models/account_banking_mandate.py @@ -44,7 +44,7 @@ class AccountBankingMandate(models.Model): tracking=40, domain=lambda self: self._get_default_partner_bank_id_domain(), ondelete="restrict", - index=True, + index="btree", check_company=True, ) partner_id = fields.Many2one( @@ -52,7 +52,7 @@ class AccountBankingMandate(models.Model): related="partner_bank_id.partner_id", string="Partner", store=True, - index=True, + index="btree", ) company_id = fields.Many2one( comodel_name="res.company", diff --git a/account_banking_mandate/models/bank_payment_line.py b/account_banking_mandate/models/bank_payment_line.py deleted file mode 100644 index 5eb6c80ba..000000000 --- a/account_banking_mandate/models/bank_payment_line.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 2014 Compassion CH - Cyril Sester -# Copyright 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza -# Copyright 2015-16 Akretion - Alexis de Lattre -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). - -from odoo import api, fields, models - - -class BankPaymentLine(models.Model): - _inherit = "bank.payment.line" - - mandate_id = fields.Many2one( - comodel_name="account.banking.mandate", - string="Direct Debit Mandate", - related="payment_line_ids.mandate_id", - check_company=True, - ) - - @api.model - def same_fields_payment_line_and_bank_payment_line(self): - res = super().same_fields_payment_line_and_bank_payment_line() - res.append("mandate_id") - return res diff --git a/account_banking_mandate/readme/CONTRIBUTORS.rst b/account_banking_mandate/readme/CONTRIBUTORS.rst index 848ab9aa5..4bb9651d2 100644 --- a/account_banking_mandate/readme/CONTRIBUTORS.rst +++ b/account_banking_mandate/readme/CONTRIBUTORS.rst @@ -8,3 +8,4 @@ * Marçal Isern * Andrea Stirpe * Manuel Regidor +* Giovanni Francesco Capalbo diff --git a/account_banking_mandate/static/description/index.html b/account_banking_mandate/static/description/index.html index e5e5be90f..14b505f50 100644 --- a/account_banking_mandate/static/description/index.html +++ b/account_banking_mandate/static/description/index.html @@ -3,7 +3,7 @@ - + Account Banking Mandate