Always keep the oldest timestamp

The optimistic lock should be checked with the oldest timestamp to be safer.

issue2687
review23561002
This commit is contained in:
Cédric Krier committed 2015-10-18 16:53:03 +02:00
1 parent b07f9ee1cc
commit aba3e13833
1 file changed
+3 -1
+3 -1
View File
@@ -436,7 +436,9 @@ class Record(SignalEvent):
later = {}
for fieldname, value in val.iteritems():
if fieldname == '_timestamp':
self._timestamp = value
# Always keep the older timestamp
if not self._timestamp:
self._timestamp = value
continue
if fieldname not in self.group.fields:
if fieldname == 'rec_name':