mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user