details: https://code.tryton.org/tryton/commit/f76135ab5918
branch: 7.8
user: Cédric Krier <[email protected]>
date: Wed Jan 07 11:19:07 2026 +0100
description:
Use current date as fallback for empty maturity date when creating
direct debit payment
Closes #14473
(grafted from 9ca44f878397f203ab2d8a24f821faeddd553899)
diffstat:
modules/account_payment/party.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 92520f17772f -r f76135ab5918 modules/account_payment/party.py
--- a/modules/account_payment/party.py Wed Jan 07 09:16:02 2026 +0100
+++ b/modules/account_payment/party.py Wed Jan 07 11:19:07 2026 +0100
@@ -132,7 +132,7 @@
with Transaction().set_context(company=self.company.id):
date = Date.today()
if line:
- date = min(line.maturity_date, date)
+ date = min(line.maturity_date or date, date)
if amount is None:
amount = line.payment_amount
if amount: