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:
1 parent
b3fabf310e
commit
e4ce7b49e7
1 file changed
+1
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user