[FIX] account_reconciliation_widget: Non existing field

It should be `partner_bank_id`.

Fixes #468
This commit is contained in:
Pedro M. Baeza
2022-05-28 14:12:53 +02:00
parent c1ecba90e7
commit b44d9d49a3
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
{
"name": "account_reconciliation_widget",
"version": "15.0.1.1.5",
"version": "15.0.1.1.6",
"category": "Accounting",
"license": "AGPL-3",
"summary": "Account reconciliation widget",

View File

@@ -178,7 +178,7 @@ class AccountBankStatementLine(models.Model):
)
# 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.partner_bank_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()