From e15bd7eec120ca6527f1f72323919c8c95a68408 Mon Sep 17 00:00:00 2001 From: Niels Huylebroeck Date: Mon, 30 Jun 2014 18:03:47 +0200 Subject: [PATCH] Fixing a problem where the exact match returns a single item. The function get_data_for_reconciliations expects a list at line 473 to loop over. Without this fix you get TypeError: string indices must be integers, not str --- addons/account/account_bank_statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account_bank_statement.py b/addons/account/account_bank_statement.py index 6a81e0b310f..281727f2ef5 100644 --- a/addons/account/account_bank_statement.py +++ b/addons/account/account_bank_statement.py @@ -551,7 +551,7 @@ class account_bank_statement_line(osv.osv): # look for exact match exact_match_id = self.get_move_lines_counterparts(cr, uid, st_line, excluded_ids=excluded_ids, additional_domain=[(amount_field, '=', (sign * st_line.amount))]) if exact_match_id: - return exact_match_id[0] + return exact_match_id # select oldest move lines if sign == -1: