[FIX] default context

bzr revid: fp@tinyerp.com-20091005174655-cq9b2q92ww4onets
This commit is contained in:
Fabien Pinckaers 2009-10-05 19:46:55 +02:00
parent a79128b875
commit 3b60f632f1
1 changed files with 1 additions and 1 deletions

View File

@ -1535,7 +1535,7 @@ class orm_memory(orm_template):
# get the default values from the context
for key in context or {}:
if key.startswith('default_'):
if key.startswith('default_') and (key[8:] in fieds_list):
value[key[8:]] = context[key]
return value