From 6f0ce76e1d8425c441ec4bd78def34a6b4a23b64 Mon Sep 17 00:00:00 2001 From: Harshad Modi Date: Thu, 11 Sep 2008 19:20:18 +0530 Subject: [PATCH] fixed bug on function field if type is binary bzr revid: hmo@tinyerp.com-20080911135018-k7k8yp7pczal42cr --- bin/osv/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/fields.py b/bin/osv/fields.py index 7c1a3034770..2aaa516f572 100644 --- a/bin/osv/fields.py +++ b/bin/osv/fields.py @@ -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