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
This commit is contained in:
Cédric Krier committed 2015-10-15 00:55:03 +02:00
1 parent b3fabf310e
commit e4ce7b49e7
1 file changed
+1
+1
View File
@@ -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