diff --git a/openerp/report/report_sxw.py b/openerp/report/report_sxw.py index 1ceb73e18b6..451e41e7032 100644 --- a/openerp/report/report_sxw.py +++ b/openerp/report/report_sxw.py @@ -78,7 +78,7 @@ class _format(object): class _float_format(float, _format): def __init__(self,value): super(_float_format, self).__init__() - self.val = value and str(value) or str(0.0) + self.val = value def __str__(self): digits = 2 @@ -86,17 +86,17 @@ 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): super(_int_format, self).__init__() - self.val = value and str(value) or str(0) + self.val = value def __str__(self): if hasattr(self,'lang_obj'): return self.lang_obj.format('%.d', self.name, True) - return self.val + return str(self.val) class _date_format(str, _format): def __init__(self,value):