From e4ce7b49e7accddc12d034bd573b226caa26f223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 15 Oct 2015 00:55:03 +0200 Subject: [PATCH] Append 1 second to history date As microsecond is removed, it must ensure that the date will always be after the timestamp to get the lines read. issue5020 review18691002 --- opportunity.py | 1 + 1 file changed, 1 insertion(+) diff --git a/opportunity.py b/opportunity.py index 81c98d87b0..600c23275f 100644 --- a/opportunity.py +++ b/opportunity.py @@ -586,6 +586,7 @@ class SaleOpportunityHistory(ModelSQL, ModelView): *time.strptime(values['date'], '%Y-%m-%d %H:%M:%S.%f')[:6]) values['date'] = values['date'].replace(microsecond=0) + values['date'] += datetime.timedelta(seconds=1) return res