diff --git a/account_payment_disperse/wizard/register_payment_wizard.py b/account_payment_disperse/wizard/register_payment_wizard.py index e2055a7c..6622d1fa 100644 --- a/account_payment_disperse/wizard/register_payment_wizard.py +++ b/account_payment_disperse/wizard/register_payment_wizard.py @@ -164,7 +164,7 @@ class AccountRegisterPaymentsInvoiceLine(models.TransientModel): for move_line in invoice.line_ids.filtered(lambda r: ( not r.reconciled and r.account_id.internal_type in ('payable', 'receivable') - and r.date_maturity <= cutoff_date + and (not r.date_maturity or r.date_maturity <= cutoff_date) )): amount = move_line.debit - move_line.credit total_amount += amount