From 02d52fe7fc2a2462786e1521ff6dfc8dee4d7773 Mon Sep 17 00:00:00 2001 From: pvy Date: Wed, 13 Jan 2016 11:19:38 +0100 Subject: [PATCH] [IMP] account: add the possibility to filter by a reconciliation date in the _query_get() method --- addons/account/models/account_move.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index ebfb5ffee30..157c40ce542 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -1142,6 +1142,9 @@ class AccountMoveLine(models.Model): if 'company_ids' in context: domain += [('company_id', 'in', context['company_ids'])] + if context.get('reconcile_date'): + domain += ['|', ('reconciled', '=', False), '|', ('matched_debit_ids.create_date', '>', context['reconcile_date']), ('matched_credit_ids.create_date', '>', context['reconcile_date'])] + where_clause = "" where_clause_params = [] tables = ''