[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:
Thibaut DIRLIK 2011-08-25 16:58:56 +02:00
parent b5a429d008
commit f0cc97b2e4
1 changed files with 1 additions and 1 deletions

View File

@ -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]