changeset 521acd80c11a in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=521acd80c11a
description:
        Allow empty timedelta

        issue11869
diffstat:

 trytond/ir/trigger.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 5b894db18c81 -r 521acd80c11a trytond/ir/trigger.py
--- a/trytond/ir/trigger.py     Thu Nov 24 19:16:51 2022 +0100
+++ b/trytond/ir/trigger.py     Thu Nov 24 23:04:58 2022 +0100
@@ -51,7 +51,8 @@
         '0 for no limit.')
     minimum_time_delay = fields.TimeDelta(
         "Minimum Delay",
-        domain=[
+        domain=['OR',
+            ('minimum_time_delay', '=', None),
             ('minimum_time_delay', '>=', TimeDelta()),
             ],
         help='Set a minimum time delay between call to "Action Function" '

Reply via email to