From 8574f61ab7bef9eb11d7e2492e897307e1bf3866 Mon Sep 17 00:00:00 2001 From: Arthur Maniet Date: Wed, 17 Sep 2014 15:02:02 +0200 Subject: [PATCH] [IMP] account: bank statement reconciliation: allow to filter on move line name --- addons/account/account_bank_statement.py | 3 +++ addons/account/account_move_line.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/account/account_bank_statement.py b/addons/account/account_bank_statement.py index 6ef417c91d8..a85843f2b1a 100644 --- a/addons/account/account_bank_statement.py +++ b/addons/account/account_bank_statement.py @@ -597,6 +597,9 @@ class account_bank_statement_line(osv.osv): if not st_line.partner_id.id: domain.insert(-1, '|', ) domain.append(('partner_id.name', 'ilike', str)) + if str != '/': + domain.insert(-1, '|', ) + domain.append(('name', 'ilike', str)) # Get move lines ; in case of a partial reconciliation, only consider one line filtered_lines = [] diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 2c29b0a5dd5..8583de1e1aa 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -776,7 +776,7 @@ class account_move_line(osv.osv): ret_line = { 'id': line.id, - 'name': line.name if line.name != '/' else line.move_id.name, + 'name': line.move_id.name + ' : '+ line.name if line.name != '/' else line.move_id.name, 'ref': line.move_id.ref, 'account_code': line.account_id.code, 'account_name': line.account_id.name,