[IMP] account: bank statement reconciliation: allow to filter on move line name

This commit is contained in:
Arthur Maniet 2014-09-17 15:02:02 +02:00
parent ae742db21d
commit 8574f61ab7
2 changed files with 4 additions and 1 deletions

View File

@ -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 = []

View File

@ -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,