[IMP] improve code.

bzr revid: ysa@tinyerp.com-20110530120638-g2m63j8fnrgt1q0t
This commit is contained in:
Yogesh (OpenERP) 2011-05-30 17:36:38 +05:30
parent f168826044
commit af3779a9e2
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ class _format(object):
class _float_format(float, _format):
def __init__(self,value):
super(_float_format, self).__init__()
self.val = value
self.val = value or 0.0
def __str__(self):
digits = 2
@ -91,7 +91,7 @@ class _float_format(float, _format):
class _int_format(int, _format):
def __init__(self,value):
super(_int_format, self).__init__()
self.val = value
self.val = value or 0
def __str__(self):
if hasattr(self,'lang_obj'):