From 49c118320154a9be6109a1c41a01f2f400abaeb1 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 5 Feb 2015 14:33:07 +0100 Subject: [PATCH] If partner_id is in the transactions dict, take it into account --- account_bank_statement_import/account_bank_statement_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_bank_statement_import/account_bank_statement_import.py b/account_bank_statement_import/account_bank_statement_import.py index 3b997d6..358901e 100644 --- a/account_bank_statement_import/account_bank_statement_import.py +++ b/account_bank_statement_import/account_bank_statement_import.py @@ -213,7 +213,7 @@ class account_bank_statement_import(osv.TransientModel): if unique_import_id: line_vals['unique_import_id'] = (account_number and account_number + '-' or '') + unique_import_id - if not 'bank_account_id' in line_vals or not line_vals['bank_account_id']: + if not line_vals.get('partner_id') and not line_vals.get('bank_account_id'): # Find the partner and his bank account or create the bank account. The partner selected during the # reconciliation process will be linked to the bank when the statement is closed. partner_id = False