From 955e6990ba0024cb44b0ac47d934ef8dfa8ef5ce Mon Sep 17 00:00:00 2001 From: nguyenhk Date: Wed, 6 Oct 2021 08:32:00 +0700 Subject: [PATCH] [MIG] account_reconcile_restrict_partner_mismatch: Migration to 14.0 --- .../README.rst | 19 +++++++++----- .../__manifest__.py | 2 +- .../models/account_move_line.py | 6 ++--- .../readme/CONTRIBUTORS.rst | 3 ++- .../readme/CREDITS.rst | 1 + .../static/description/index.html | 25 +++++++++++-------- .../tests/test_reconciliation.py | 3 +++ 7 files changed, 38 insertions(+), 21 deletions(-) create mode 100644 account_reconcile_restrict_partner_mismatch/readme/CREDITS.rst diff --git a/account_reconcile_restrict_partner_mismatch/README.rst b/account_reconcile_restrict_partner_mismatch/README.rst index 145d112a..0469d270 100644 --- a/account_reconcile_restrict_partner_mismatch/README.rst +++ b/account_reconcile_restrict_partner_mismatch/README.rst @@ -14,13 +14,13 @@ Reconcile restrict partner mismatch :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github - :target: https://github.com/OCA/account-reconcile/tree/13.0/account_reconcile_restrict_partner_mismatch + :target: https://github.com/OCA/account-reconcile/tree/14.0/account_reconcile_restrict_partner_mismatch :alt: OCA/account-reconcile .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/account-reconcile-13-0/account-reconcile-13-0-account_reconcile_restrict_partner_mismatch + :target: https://translation.odoo-community.org/projects/account-reconcile-14-0/account-reconcile-14-0-account_reconcile_restrict_partner_mismatch :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/98/13.0 + :target: https://runbot.odoo-community.org/runbot/98/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -47,7 +47,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. @@ -63,8 +63,15 @@ Contributors ~~~~~~~~~~~~ * `Tecnativa `_: - * Ernesto Tejeda +* `Trobz `_: + * Nguyen Ho + +Other credits +~~~~~~~~~~~~~ + +The migration of this module from 13.0 to 14.0 was financially supported by Camptocamp + Maintainers ~~~~~~~~~~~ @@ -79,6 +86,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/account-reconcile `_ project on GitHub. +This module is part of the `OCA/account-reconcile `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_reconcile_restrict_partner_mismatch/__manifest__.py b/account_reconcile_restrict_partner_mismatch/__manifest__.py index c24f65f8..3d2ab092 100644 --- a/account_reconcile_restrict_partner_mismatch/__manifest__.py +++ b/account_reconcile_restrict_partner_mismatch/__manifest__.py @@ -5,7 +5,7 @@ "name": "Reconcile restrict partner mismatch", "summary": "Restrict reconciliation on receivable " "and payable accounts to the same partner", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "depends": ["account"], "author": "Camptocamp, Odoo Community Association (OCA)", "website": "https://github.com/OCA/account-reconcile", diff --git a/account_reconcile_restrict_partner_mismatch/models/account_move_line.py b/account_reconcile_restrict_partner_mismatch/models/account_move_line.py index adafe6e4..2835a2a8 100644 --- a/account_reconcile_restrict_partner_mismatch/models/account_move_line.py +++ b/account_reconcile_restrict_partner_mismatch/models/account_move_line.py @@ -9,9 +9,9 @@ from odoo.tools import config class AccountMoveLine(models.Model): _inherit = "account.move.line" - def reconcile(self, writeoff_acc_id=False, writeoff_journal_id=False): + def reconcile(self): if config["test_enable"] and not self.env.context.get("test_partner_mismatch"): - return super().reconcile(writeoff_acc_id, writeoff_journal_id) + return super().reconcile() # to be consistent with parent method if not self: @@ -27,4 +27,4 @@ class AccountMoveLine(models.Model): " lines for receivable and payable accounts!" ) ) - return super().reconcile(writeoff_acc_id, writeoff_journal_id) + return super().reconcile() diff --git a/account_reconcile_restrict_partner_mismatch/readme/CONTRIBUTORS.rst b/account_reconcile_restrict_partner_mismatch/readme/CONTRIBUTORS.rst index 0b6bee44..85d7402d 100644 --- a/account_reconcile_restrict_partner_mismatch/readme/CONTRIBUTORS.rst +++ b/account_reconcile_restrict_partner_mismatch/readme/CONTRIBUTORS.rst @@ -1,3 +1,4 @@ * `Tecnativa `_: - * Ernesto Tejeda +* `Trobz `_: + * Nguyen Ho diff --git a/account_reconcile_restrict_partner_mismatch/readme/CREDITS.rst b/account_reconcile_restrict_partner_mismatch/readme/CREDITS.rst new file mode 100644 index 00000000..f37ebe75 --- /dev/null +++ b/account_reconcile_restrict_partner_mismatch/readme/CREDITS.rst @@ -0,0 +1 @@ +The migration of this module from 13.0 to 14.0 was financially supported by Camptocamp diff --git a/account_reconcile_restrict_partner_mismatch/static/description/index.html b/account_reconcile_restrict_partner_mismatch/static/description/index.html index 3ddd6fd3..c01c3ccf 100644 --- a/account_reconcile_restrict_partner_mismatch/static/description/index.html +++ b/account_reconcile_restrict_partner_mismatch/static/description/index.html @@ -3,7 +3,7 @@ - + Reconcile restrict partner mismatch