[IMP] account: add the possibility to filter by a reconciliation date in the _query_get() method
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user