[IMP] account: add the possibility to filter by a reconciliation date in the _query_get() method

This commit is contained in:
pvy
2016-01-25 16:21:28 +01:00
committed by qdp-odoo
parent 16a3a4b7fe
commit 02d52fe7fc
+3
View File
@@ -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 = ''