[FIX] method __str__ returns floating point value instead of string in report_sxw.py file

lp bug: https://launchpad.net/bugs/723662 fixed

bzr revid: ysa@tinyerp.com-20110530110621-2bgxi79fyx6e9y0g
This commit is contained in:
Yogesh (OpenERP) 2011-05-30 16:36:21 +05:30
parent 52731ee4b8
commit 9c1d85e298
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class _float_format(float, _format):
digits = self._field.digits[1]
if hasattr(self, 'lang_obj'):
return self.lang_obj.format('%.' + str(digits) + 'f', self.name, True)
return self.val
return str(self.val)
class _int_format(int, _format):
def __init__(self,value):