details: https://code.tryton.org/tryton/commit/34ac18f5d995
branch: 7.4
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 f26641076fe7 -r 34ac18f5d995 modules/account_payment/party.py
--- a/modules/account_payment/party.py Fri Jan 02 13:11:49 2026 +0100
+++ b/modules/account_payment/party.py Wed Jan 07 11:19:07 2026 +0100
@@ -134,7 +134,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: