details: https://code.tryton.org/tryton/commit/309a5bafe807
branch: 7.6
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 a365faa7bb79 -r 309a5bafe807 modules/account_payment/party.py
--- a/modules/account_payment/party.py Mon Jan 05 00:38:37 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: