From b44d9d49a3824ccc16bff86171b3b4ef0a56426c Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sat, 28 May 2022 14:12:53 +0200 Subject: [PATCH] [FIX] account_reconciliation_widget: Non existing field It should be `partner_bank_id`. Fixes #468 --- account_reconciliation_widget/__manifest__.py | 2 +- account_reconciliation_widget/models/account_bank_statement.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/account_reconciliation_widget/__manifest__.py b/account_reconciliation_widget/__manifest__.py index 9a6f16be..d5c11141 100644 --- a/account_reconciliation_widget/__manifest__.py +++ b/account_reconciliation_widget/__manifest__.py @@ -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", diff --git a/account_reconciliation_widget/models/account_bank_statement.py b/account_reconciliation_widget/models/account_bank_statement.py index 631cdca0..c6678982 100644 --- a/account_reconciliation_widget/models/account_bank_statement.py +++ b/account_reconciliation_widget/models/account_bank_statement.py @@ -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()