[FIX] read() method returns None values instead of False, incompatible with XML-RPC
def convert_to_read(self, value, use_name_get=True):
""" convert `value` from the cache to a value as returned by method
:meth:`BaseModel.read`
+
+ :param bool use_name_get: when True, value's diplay name will
+ 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