From f44d05bd8fbd8fe25c056c4dc553aefbbcf13850 Mon Sep 17 00:00:00 2001 From: Francisco Ivan Anton Prieto Date: Tue, 20 Apr 2021 10:40:00 +0200 Subject: [PATCH] [14.0][FIX] account_reconciliation_widget: error checking res.partner.bank on account.bank.statement.line bank_account_id is now partner_bank_id on account.bank.statement.line (inheriting from move) --- account_reconciliation_widget/models/account_bank_statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_reconciliation_widget/models/account_bank_statement.py b/account_reconciliation_widget/models/account_bank_statement.py index 0a5993d6..2e536711 100644 --- a/account_reconciliation_widget/models/account_bank_statement.py +++ b/account_reconciliation_widget/models/account_bank_statement.py @@ -200,7 +200,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()