Merge branch 'mig/13.0/account_payment_disperse' into '13.0-test'

mig/13.0/account_payment_disperse into 13.0-test

See merge request hibou-io/hibou-odoo/suite!898
This commit is contained in:
Hibou Bot
2021-05-04 22:18:38 +00:00

View File

@@ -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