changeset ac34042693cc in modules/account_payment_stripe:default
details:
https://hg.tryton.org/modules/account_payment_stripe?cmd=changeset&node=ac34042693cc
description:
Enforce positive timedelta
issue11869
review421921004
diffstat:
payment.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 7059e781c66b -r ac34042693cc payment.py
--- a/payment.py Mon Oct 31 17:08:45 2022 +0100
+++ b/payment.py Thu Nov 24 19:16:51 2022 +0100
@@ -24,7 +24,7 @@
employee_field, reset_employee, set_employee)
from trytond.modules.currency.fields import Monetary
from trytond.pool import Pool, PoolMeta
-from trytond.pyson import Eval
+from trytond.pyson import Eval, TimeDelta
from trytond.report import Report, get_email
from trytond.rpc import RPC
from trytond.sendmail import sendmail_transactional
@@ -923,6 +923,9 @@
last_event = fields.Char("Last Event", readonly=True, strip=False)
setup_intent_delay = fields.TimeDelta(
"Setup Intent Delay", required=True,
+ domain=[
+ ('setup_intent_delay', '>=', TimeDelta()),
+ ],
help="The delay before cancelling setup intent not succeeded.")
@classmethod