[FIX] if not lang in get_source method on transaltion then return blank
bzr revid: mra@tinyerp.com-20100215125014-duvoo2ppwup959xn
This commit is contained in:
parent
75b0205a1a
commit
e05d255c01
|
@ -123,6 +123,8 @@ class ir_translation(osv.osv):
|
|||
|
||||
@tools.cache(skiparg=3)
|
||||
def _get_source(self, cr, uid, name, tt, lang, source=None):
|
||||
if not lang:
|
||||
return ''
|
||||
if source:
|
||||
#if isinstance(source, unicode):
|
||||
# source = source.encode('utf8')
|
||||
|
|
Loading…
Reference in New Issue