From b0a340022fec23f0e5b8ffce1bced608609e0651 Mon Sep 17 00:00:00 2001 From: AjmalCybro Date: Tue, 14 Mar 2023 17:32:13 +0530 Subject: [PATCH] Mar 14 : [FIX] Bug Fixed 'base_accounting_kit' --- base_accounting_kit/__manifest__.py | 2 +- base_accounting_kit/models/payment_matching.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/base_accounting_kit/__manifest__.py b/base_accounting_kit/__manifest__.py index 1521e624e..46e66500f 100644 --- a/base_accounting_kit/__manifest__.py +++ b/base_accounting_kit/__manifest__.py @@ -22,7 +22,7 @@ { 'name': 'Odoo 14 Full Accounting Kit', - 'version': '14.0.3.13.14', + 'version': '14.0.3.13.15', 'category': 'Accounting', 'live_test_url': 'https://www.youtube.com/watch?v=peAp2Tx_XIs', 'summary': """ Asset and Budget Management, diff --git a/base_accounting_kit/models/payment_matching.py b/base_accounting_kit/models/payment_matching.py index 9882fc09f..acee74aff 100644 --- a/base_accounting_kit/models/payment_matching.py +++ b/base_accounting_kit/models/payment_matching.py @@ -1129,9 +1129,8 @@ class AccountBankStatementLine(models.Model): elif self.move_name: raise UserError(_('Operation not allowed. Since your statement line already received a number (%s), you cannot reconcile it entirely with existing journal entries otherwise it would make a gap in the numbering. You should book an entry and make a regular revert of it in case you want to cancel it.')% (self.move_name)) - # create the res.partner.bank if needed - if self.account_number and self.partner_id and not self.bank_account_id: + if self.account_number and self.partner_id and not self.statement_id: # Search bank account without partner to handle the case the res.partner.bank already exists but is set # on a different partner. self.partner_bank_id = self._find_or_create_bank_account()