[MERGE] Bug 303455: orm.create() - use local before inherited, courtesy of Thibaut DIRLIK (Logica)

bzr revid: odo@openerp.com-20111201121503-bf7671is06atteb4
This commit is contained in:
Olivier Dony
2011-12-01 13:15:03 +01:00
+1 -1
View File
@@ -4026,7 +4026,7 @@ class BaseModel(object):
upd_todo = []
unknown_fields = []
for v in vals.keys():
if v in self._inherit_fields:
if v in self._inherit_fields and v not in self._columns:
(table, col, col_detail, original_parent) = self._inherit_fields[v]
tocreate[table][v] = vals[v]
del vals[v]