diff options
| author | pvy <pvy@odoo.com> | 2016-01-13 11:19:38 +0100 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2016-01-25 16:21:28 +0100 |
| commit | 02d52fe7fc2a2462786e1521ff6dfc8dee4d7773 (patch) | |
| tree | eafa20cb97ea2245082cd7d8ff61afa6fbd2ccb4 | |
| parent | 16a3a4b7fe4ccad4f2e05c19ecc0ddb4694d4911 (diff) | |
[IMP] account: add the possibility to filter by a reconciliation date in the _query_get() method
| -rw-r--r-- | addons/account/models/account_move.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 = '' |
