[FIX] read() method returns None values incompatible with XML-RPC
This commit is contained in:
parent
869b647c02
commit
3f59135dce
|
@ -615,7 +615,7 @@ class Field(object):
|
||||||
""" convert `value` from the cache to a value as returned by method
|
""" convert `value` from the cache to a value as returned by method
|
||||||
:meth:`BaseModel.read`
|
:meth:`BaseModel.read`
|
||||||
"""
|
"""
|
||||||
return value
|
return False if value is None else value
|
||||||
|
|
||||||
def convert_to_write(self, value, target=None, fnames=None):
|
def convert_to_write(self, value, target=None, fnames=None):
|
||||||
""" convert `value` from the cache to a valid value for method
|
""" convert `value` from the cache to a valid value for method
|
||||||
|
|
Loading…
Reference in New Issue