orm : copy now ignore technical values ('create_date', 'create_uid', 'write_date' and 'write_uid')
bzr revid: bch-77b1aee2f9173898bfc430f5997fd4ed3f1004da
This commit is contained in:
parent
3ea7d81cf6
commit
f9a86b5fbf
|
@ -1523,6 +1523,10 @@ class orm(object):
|
|||
fields = self.fields_get(cr, uid)
|
||||
for f in fields:
|
||||
ftype = fields[f]['type']
|
||||
|
||||
if self._log_access and f in ('create_date', 'create_uid', 'write_date', 'write_uid'):
|
||||
del data[f]
|
||||
|
||||
if f in default:
|
||||
data[f] = default[f]
|
||||
elif ftype == 'function':
|
||||
|
|
Loading…
Reference in New Issue