Patch from old repository

This commit is contained in:
Renzo Meister 2021-03-29 09:07:52 +02:00
parent 38b14de3dc
commit 5df317368c

View File

@ -58,6 +58,7 @@ class CustomerOutstandingStatement(models.AbstractModel):
WHERE l2.date <= '%s'
) as pc ON pc.credit_move_id = l.id
WHERE l.partner_id IN (%s) AND at.type = '%s'
AND l.full_reconcile_id IS NULL
AND (
(pd.id IS NOT NULL AND
pd.max_date <= '%s') OR