projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66c977a
)
[FIX] Convert to long the binary size, because there was a bug about the size in...
author
Stephane Wirtel
<stephane@tinyerp.com>
Tue, 3 Feb 2009 21:58:14 +0000
(22:58 +0100)
committer
Stephane 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
patch
|
blob
|
history
diff --git
a/bin/osv/fields.py
b/bin/osv/fields.py
index
e1f9853
..
4baa246
100644
(file)
--- 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