Skip to content
Snippets Groups Projects
Commit a1c5e676a2e2 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:ambulance: reconcile: remove check that the entries are on the same partner

parent c4b2ace0ffcf
No related branches found
No related tags found
2 merge requests!18update to latest practices,!17🚑 reconcile: remove check that the entries are on the same partner
Pipeline #42367 passed
Changelog
_________
13.0.1.2.1
==========
Remove reconcile check on same partner.
13.0.1.2.0
==========
......
......@@ -20,6 +20,6 @@
{
"name": "Accounting Reports",
"version": "13.0.1.2.0",
"version": "13.0.1.2.1",
"category": "Accounting",
"author": "XCG Consulting",
......@@ -24,6 +24,6 @@
"category": "Accounting",
"author": "XCG Consulting",
"website": "http://odoo.consulting/",
"website": "https://odoo.consulting/",
"depends": [
"base",
"account",
......
##############################################################################
#
# 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 (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment