[FIX] #11339 account_reconcile_oca: KeyError on data

pull/808/head
Tom 2025-01-14 21:40:31 +01:00 committed by Jordi Ballester Alomar
parent a889b9ab2a
commit b609cb3f75
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ class AccountBankStatementLine(models.Model):
)
amount -= sum(line.get("amount") for line in line_data)
data += line_data
if res.get("auto_reconcile"):
if res.get("auto_reconcile") and self.reconcile_data_info:
self.reconcile_bank_line()
return self._recompute_suspense_line(
data,