From 5e750d52a86ada5eb4df4007ff3566a28111efe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 29 Jul 2013 10:32:45 +0200 Subject: [PATCH] Fix missing microseconds initialisation review1000002 --- trytond/ir/trigger.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trytond/ir/trigger.py b/trytond/ir/trigger.py index 8be1bf71d6..7ee4356ece 100644 --- a/trytond/ir/trigger.py +++ b/trytond/ir/trigger.py @@ -217,6 +217,8 @@ class Trigger(ModelSQL, ModelView): timepart_full[0].split(":")) if len(timepart_full) == 2: microseconds = int(timepart_full[1]) + else: + microseconds = 0 delay[record_id] = datetime.datetime(year, month, day, hours, minutes, seconds, microseconds) if (datetime.datetime.now() - delay[record_id]