[FIX] Remove the decode(utf8) function

lp bug: https://launchpad.net/bugs/307248 fixed

bzr revid: stephane@tinyerp.com-20081211220009-el7lc2bb0pqc99pc
This commit is contained in:
Stephane Wirtel 2008-12-11 23:00:09 +01:00
parent 6827e34569
commit cf09360444
2 changed files with 3 additions and 3 deletions

View File

@ -842,11 +842,11 @@ class orm_template(object):
if not trans and ('base_model_name' in context):
trans = tools.translate(cr, context['base_model_name'], 'view', context['lang'], node.getAttribute('string').encode('utf8'))
if trans:
node.setAttribute('string', trans.decode('utf8'))
node.setAttribute('string', trans)
if node.hasAttribute('sum') and node.getAttribute('sum'):
trans = tools.translate(cr, self._name, 'view', context['lang'], node.getAttribute('sum').encode('utf8'))
if trans:
node.setAttribute('sum', trans.decode('utf8'))
node.setAttribute('sum', trans)
if childs:
for f in node.childNodes:

View File

@ -54,7 +54,7 @@ class interface(netsvc.Service):
if node.hasAttribute('string') and node.getAttribute('string'):
trans = translate(cr, self.wiz_name+','+state, 'wizard_view', lang, node.getAttribute('string').encode('utf8'))
if trans:
node.setAttribute('string', trans.decode('utf8'))
node.setAttribute('string', trans)
for n in node.childNodes:
self.translate_view(cr, n, state, lang)