From 3516c1e6173164772f9162622fe176d4ffe3c871 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sat, 21 Mar 2015 12:13:58 +0100 Subject: [PATCH] FIX identify partner by res.partner.bank --- account_bank_statement_import/account_bank_statement_import.py | 1 + 1 file changed, 1 insertion(+) diff --git a/account_bank_statement_import/account_bank_statement_import.py b/account_bank_statement_import/account_bank_statement_import.py index 9283576..66c27df 100644 --- a/account_bank_statement_import/account_bank_statement_import.py +++ b/account_bank_statement_import/account_bank_statement_import.py @@ -220,6 +220,7 @@ class account_bank_statement_import(osv.TransientModel): bank_account_id = False identifying_string = line_vals.get('account_number', False) if identifying_string: + identifying_string = identifying_string.replace(' ', '').replace('-', '') ids = self.pool.get('res.partner.bank').search(cr, uid, [('acc_number', '=', identifying_string)], context=context) if ids: bank_account_id = ids[0]