From 7554c12266edc4875cb4bd02d9999bff646045a7 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Tue, 3 Feb 2009 22:58:14 +0100 Subject: [PATCH] [FIX] Convert to long the binary size, because there was a bug about the size in the binary field in the clients bzr revid: stephane@tinyerp.com-20090203215814-4rlth9lv88ekfmf3 --- 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 e1f98532527..4baa2463280 100644 --- a/bin/osv/fields.py +++ b/bin/osv/fields.py @@ -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