Merge pull request #1284 from sebalix/8.0-fix-xmlrpc-marshall-none

[FIX] read() method returns None values instead of False, incompatible with XML-RPC
This commit is contained in:
Raphael Collet 2014-07-30 15:05:03 +02:00
commit 35d50f0390
1 changed files with 1 additions and 1 deletions

View File

@ -622,7 +622,7 @@ class Field(object):
be computed using :meth:`BaseModel.name_get`, if relevant
for the field
"""
return value
return False if value is None else value
def convert_to_write(self, value, target=None, fnames=None):
""" convert `value` from the cache to a valid value for method