[FIX] create() does not write in the _inherits parent when fields have the same name.
The problem is that when you have a field in an object, and that field is also defined in its parent (defined with _inherits), when OpenERP creates the object, the field value was used to fill the parent value, not object. bzr revid: t.dirlik@adep.com-20110825145856-2qa7im2awmm5gxjz
This commit is contained in:
parent
b5a429d008
commit
f0cc97b2e4
|
@ -4050,7 +4050,7 @@ class orm(orm_template):
|
|||
(upd0, upd1, upd2) = ('', '', [])
|
||||
upd_todo = []
|
||||
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) = self._inherit_fields[v]
|
||||
tocreate[table][v] = vals[v]
|
||||
del vals[v]
|
||||
|
|
Loading…
Reference in New Issue