[FIX] Bug 365975: Corrected wizard name parsing on non-enligh characters.

bzr revid: jvo@tinyerp.com-20090427084642-hhrdjxjove9h7i93
This commit is contained in:
Jay (Open ERP) 2009-04-27 14:16:42 +05:30
parent 6dcc5a4f9f
commit 7318101971
2 changed files with 2 additions and 2 deletions

View File

@ -244,7 +244,7 @@ class module(osv.osv):
m.state not in ('uninstalled','uninstallable','to remove')''', (module.name,))
res = cr.fetchall()
if res:
raise orm.except_orm(_('Error'), _('Some installed modules depends on the module you plan to desinstall :\n %s') % '\n'.join(map(lambda x: '\t%s: %s' % (x[0], x[1]), res)))
raise orm.except_orm(_('Error'), _('Some installed modules depend on the module you plan to Uninstall :\n %s') % '\n'.join(map(lambda x: '\t%s: %s' % (x[0], x[1]), res)))
self.write(cr, uid, ids, {'state': 'to remove'})
return True

View File

@ -132,7 +132,7 @@ class interface(netsvc.Service):
# translate arch
if not isinstance(arch, UpdateableStr):
doc = dom.minidom.parseString(arch)
doc = dom.minidom.parseString(arch.encode('utf8'))
self.translate_view(cr, doc, state, lang)
arch = doc.toxml()