[IMP] models: force recomputation of all fields on a newly created record

This commit is contained in:
Raphael Collet 2015-01-13 16:01:25 +01:00
parent 38fc04785a
commit ec25207b8f
1 changed files with 1 additions and 1 deletions

View File

@ -4176,7 +4176,7 @@ class BaseModel(object):
# invalidate and mark new-style fields to recompute; do this before
# setting other fields, because it can require the value of computed
# fields, e.g., a one2many checking constraints on records
recs.modified([u[0] for u in updates])
recs.modified(self._fields)
# call the 'set' method of fields which are not classic_write
upd_todo.sort(lambda x, y: self._columns[x].priority-self._columns[y].priority)