# HG changeset patch # User Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr> # Date 1664785586 -7200 # Mon Oct 03 10:26:26 2022 +0200 # Branch 13.0 # Node ID a1c5e676a2e24e639e5f4ed14ec841a7ceae304c # Parent c4b2ace0ffcfaa48fe4d5f0151824e27b1e395c8 🚑 reconcile: remove check that the entries are on the same partner diff --git a/NEWS.rst b/NEWS.rst --- a/NEWS.rst +++ b/NEWS.rst @@ -1,6 +1,11 @@ Changelog _________ +13.0.1.2.1 +========== + +Remove reconcile check on same partner. + 13.0.1.2.0 ========== diff --git a/__manifest__.py b/__manifest__.py --- a/__manifest__.py +++ b/__manifest__.py @@ -20,10 +20,10 @@ { "name": "Accounting Reports", - "version": "13.0.1.2.0", + "version": "13.0.1.2.1", "category": "Accounting", "author": "XCG Consulting", - "website": "http://odoo.consulting/", + "website": "https://odoo.consulting/", "depends": [ "base", "account", diff --git a/models/account_move_line.py b/models/account_move_line.py --- a/models/account_move_line.py +++ b/models/account_move_line.py @@ -1,7 +1,7 @@ ############################################################################## # # Accounting reports, for Odoo -# Copyright (C) 2015 XCG Consulting <http://odoo.consulting> +# Copyright (C) 2015, 2022 XCG Consulting <https://xcg-consulting.fr/> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -41,6 +41,7 @@ store=True, ) + # XXX why is that done in this module? def control_reconciliation_access(self): """Correct the controls performed by Odoo on accounting entries before reconciliation, for these contain errors. @@ -66,8 +67,6 @@ ) ) partners.discard(False) - if len(set(partners)) > 1: - raise UserError(_("Entries are not of the same partner!")) if len(set(all_accounts)) > 1: raise UserError(_("Entries are not of the same account!")) if not (