[FIX] default context
bzr revid: fp@tinyerp.com-20091005174655-cq9b2q92ww4onets
This commit is contained in:
parent
a79128b875
commit
3b60f632f1
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue