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

This commit is contained in:
Raphael Collet 2015-02-11 11:29:32 +01:00
parent 3a44d84b0f
commit 75ca4f8b71
1 changed files with 2 additions and 0 deletions

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: