fixed bug on function field if type is binary

bzr revid: hmo@tinyerp.com-20080911135018-k7k8yp7pczal42cr
This commit is contained in:
Harshad Modi
2008-09-11 19:20:18 +05:30
parent e26e2062b5
commit 6f0ce76e1d
+1 -1
View File
@@ -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