[IMP] If the value is a str or unicode and the value is empty, we return a empty string
bzr revid: stephane@tinyerp.com-20090122133245-bp1ri3cu25b3ktp1
This commit is contained in:
parent
b60043e9df
commit
7b26658101
|
@ -335,7 +335,7 @@ class rml_parse(object):
|
|||
|
||||
|
||||
def formatLang(self, value, digits=2, date=False,date_time=False, grouping=True, monetary=False, currency=None):
|
||||
if (not isinstance(value,float)) and (not value):
|
||||
if isinstance(value, (str, unicode)) and not value:
|
||||
return ''
|
||||
pool_lang=self.pool.get('res.lang')
|
||||
lang = self.localcontext.get('lang', 'en_US') or 'en_US'
|
||||
|
|
Loading…
Reference in New Issue