[IMP] models: force recomputation of all fields on a newly created record
This commit is contained in:
parent
38fc04785a
commit
ec25207b8f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue