bzr revid: fp@tinyerp.com-20090427181718-gs2iax9dxmdbyf4f
This commit is contained in:
Fabien Pinckaers
2009-04-27 20:17:18 +02:00
2 changed files with 2 additions and 2 deletions
+1 -1
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
+1 -1
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()