Skip to content

Commit

Permalink
[IMP] account: bank statement reconciliation: allow to filter on move…
Browse files Browse the repository at this point in the history
… line name
  • Loading branch information
Whisno committed Sep 17, 2014
1 parent ae742db commit 8574f61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions addons/account/account_bank_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,9 @@ def get_move_lines_for_reconciliation(self, cr, uid, st_line, excluded_ids=None,
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 = []
Expand Down
2 changes: 1 addition & 1 deletion addons/account/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ def prepare_move_lines_for_reconciliation_widget(self, cr, uid, lines, target_cu

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,
Expand Down

0 comments on commit 8574f61

Please sign in to comment.