[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:
parent
52731ee4b8
commit
9c1d85e298
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue