Fix create when inherits field is set for issue878

This commit is contained in:
Cédric Krier committed 2009-05-20 10:44:07 +02:00
1 parent 83814d6193
commit 748ce6ee39
1 file changed
+2 -1
+2 -1
View File
@@ -272,7 +272,8 @@ class ModelSQL(ModelStorage):
(inherits, col, col_detail) = self._inherit_fields[i]
if i in self._columns and isinstance(col_detail, fields.Function):
continue
tocreate[inherits][i] = values[i]
if inherits in tocreate:
tocreate[inherits][i] = values[i]
if i not in self._columns:
del values[i]