[FIX] Convert to long the binary size, because there was a bug about the size in...
authorStephane Wirtel <stephane@tinyerp.com>
Tue, 3 Feb 2009 21:58:14 +0000 (22:58 +0100)
committerStephane Wirtel <stephane@tinyerp.com>
Tue, 3 Feb 2009 21:58:14 +0000 (22:58 +0100)
bzr revid: stephane@tinyerp.com-20090203215814-4rlth9lv88ekfmf3

bin/osv/fields.py

index e1f9853..4baa246 100644 (file)
@@ -217,7 +217,7 @@ class binary(_column):
                     val = v[name]
                     break
             if context.get('bin_size', False):
-                res[i] = tools.human_size(val)
+                res[i] = tools.human_size(long(val))
             else:
                 res[i] = val
         return res