From a6de1b150c99d679f2a3175cf5d4e604ccdfc154 Mon Sep 17 00:00:00 2001 From: Arthur Maniet Date: Wed, 26 Nov 2014 11:38:24 +0100 Subject: [PATCH] [IMP] account: bank statement reconciliation widget: allow to filter move lines on due date --- addons/account/account_bank_statement.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/addons/account/account_bank_statement.py b/addons/account/account_bank_statement.py index 0e16ba660f8..8dd3107bf3f 100644 --- a/addons/account/account_bank_statement.py +++ b/addons/account/account_bank_statement.py @@ -606,15 +606,21 @@ class account_bank_statement_line(osv.osv): if additional_domain is None: additional_domain = [] # Make domain - domain = additional_domain + [('reconcile_id', '=', False), - ('state', '=', 'valid'), - ('account_id.reconcile', '=', True)] + domain = additional_domain + [ + ('reconcile_id', '=', False), + ('state', '=', 'valid'), + ('account_id.reconcile', '=', True) + ] if st_line.partner_id.id: domain += [('partner_id', '=', st_line.partner_id.id)] if excluded_ids: domain.append(('id', 'not in', excluded_ids)) if str: - domain += ['|', ('move_id.name', 'ilike', str), ('move_id.ref', 'ilike', str)] + domain += [ + '|', ('move_id.name', 'ilike', str), + '|', ('move_id.ref', 'ilike', str), + ('date_maturity', 'like', str), + ] if not st_line.partner_id.id: domain.insert(-1, '|', ) domain.append(('partner_id.name', 'ilike', str))