From: sebalix Date: Sun, 20 Jul 2014 11:31:50 +0000 (+0200) Subject: [FIX] read() method returns None values incompatible with XML-RPC X-Git-Tag: 8.0.0~498^2 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=3f59135dce6ff086e2fac0c3621d6d7b1fd89bdf;p=odoo%2Fodoo.git [FIX] read() method returns None values incompatible with XML-RPC --- diff --git a/openerp/fields.py b/openerp/fields.py index ff50f73..bb60911 100644 --- a/openerp/fields.py +++ b/openerp/fields.py @@ -615,7 +615,7 @@ class Field(object): """ convert `value` from the cache to a value as returned by method :meth:`BaseModel.read` """ - 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