Browse Source

Mar 14 : [FIX] Bug Fixed 'base_accounting_kit'

pull/247/head
AjmalCybro 2 years ago
parent
commit
b0a340022f
  1. 2
      base_accounting_kit/__manifest__.py
  2. 3
      base_accounting_kit/models/payment_matching.py

2
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,

3
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()

Loading…
Cancel
Save