[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:
Stephane Wirtel 2009-01-22 14:32:45 +01:00
parent b60043e9df
commit 7b26658101
1 changed files with 1 additions and 1 deletions

View File

@ -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'