bugfix with the wizard of module lang into the base module

bzr revid: stephane@tinyerp.com-20080910114012-8tdfy7h258nuccp2
This commit is contained in:
Stephane Wirtel
2008-09-10 13:40:12 +02:00
parent c526b4c8ae
commit 203d335927
@@ -57,8 +57,7 @@ class wizard_lang_install(wizard.interface):
def _lang_install(self, cr, uid, data, context):
lang = data['form']['lang']
if lang:
pool = pooler.get_pool(cr.dbname)
modobj = cr.pool.get('ir.module.module')
modobj = pooler.get_pool(cr.dbname).get('ir.module.module')
mids = modobj.search(cr, uid, [('state', '=', 'installed')])
modobj.update_translations(cr, uid, mids, lang)
return {}