[FIX] models: in onchange(), do not assign field 'id' on record

This commit is contained in:
Raphael Collet
2015-02-11 12:45:18 +01:00
parent 3a44d84b0f
commit 75ca4f8b71
+2
View File
@@ -5782,6 +5782,8 @@ class BaseModel(object):
# dummy assignment: trigger invalidations on the record
for name in todo:
if name == 'id':
continue
value = record[name]
field = self._fields[name]
if field.type == 'many2one' and field.delegate and not value: