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:
commit
35d50f0390
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue