[FIX] fields: get_nice_size fun, incomplete imported code from xrg branch

bzr revid: hmo@tinyerp.com-20091201102753-osxf3hbeecpph1f3
This commit is contained in:
Harry (Open ERP)
2009-12-01 15:57:53 +05:30
parent bc55dddf53
commit 7326eba07d
+2 -2
View File
@@ -590,9 +590,9 @@ def get_nice_size(a):
if isinstance(y, (int,long)):
size = y
elif y:
y = len(y)
size = len(y)
else:
y = 0
size = 0
return (x, tools.human_size(size))
# ---------------------------------------------------------