Don't use value to create inherits model if the field is overridden in model

Like that we have the same behavior then write
This commit is contained in:
Cédric Krier committed 2009-05-20 14:04:11 +02:00
1 parent 748ce6ee39
commit 058000852a
1 file changed
+1 -1
+1 -1
View File
@@ -270,7 +270,7 @@ class ModelSQL(ModelStorage):
for i in values.keys():
if i in self._inherit_fields:
(inherits, col, col_detail) = self._inherit_fields[i]
if i in self._columns and isinstance(col_detail, fields.Function):
if i in self._columns:
continue
if inherits in tocreate:
tocreate[inherits][i] = values[i]