fixed bug on function field if type is binary
bzr revid: hmo@tinyerp.com-20080911135018-k7k8yp7pczal42cr
This commit is contained in:
+1
-1
@@ -616,7 +616,7 @@ class function(_column):
|
||||
else:
|
||||
res = self._fnct(cr, obj._table, ids, name, self._arg, context)
|
||||
|
||||
if self._type == 'binary' and context.get('get_binary_size', True):
|
||||
if self._type == 'binary' and context.get('get_binary_size', False):
|
||||
# convert the data returned by the function with the size of that data...
|
||||
res = dict(map(lambda (x, y): (x, tools.human_size(len(y))), res.items()))
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user