[FIX] default_FIELD from context should not overwrite modified FIELD value while creating record

lp bug: https://launchpad.net/bugs/516964 fixed

bzr revid: jvo@tinyerp.com-20100204121656-pzh1opx6kbrywscg
This commit is contained in:
Jay (Open ERP) 2010-02-04 17:46:56 +05:30
parent 17bf6ec27f
commit e81c40c7e7
1 changed files with 1 additions and 1 deletions

View File

@ -2140,7 +2140,7 @@ class orm(orm_template):
field_value = field_value2
value[field] = field_value
for key in context or {}:
if key.startswith('default_'):
if key.startswith('default_') and (key[8:] in fields_list):
value[key[8:]] = context[key]
return value