[FIX]:<type 'exceptions.TypeError'>:cannot marshal None unless allow_none is enabled

bzr revid: nch@tinyerp.com-20100629060033-5sqy9a2bximjofdz
This commit is contained in:
nch@tinyerp.com 2010-06-29 11:30:33 +05:30
parent db0262801f
commit 506cd4a2af
1 changed files with 1 additions and 1 deletions

View File

@ -1866,7 +1866,7 @@ class orm_memory(orm_template):
if not context:
context = {}
# we define default value for each field existing in the object
value = dict.fromkeys(fields_list)
value = dict.fromkeys(fields_list, False)
# get the default values for the inherited fields
for f in fields_list:
if f in self._defaults: