From 203d3359278ce621ca8a0992de7c5ef7b493f429 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Wed, 10 Sep 2008 13:40:12 +0200 Subject: [PATCH] bugfix with the wizard of module lang into the base module bzr revid: stephane@tinyerp.com-20080910114012-8tdfy7h258nuccp2 --- bin/addons/base/module/wizard/wizard_module_lang_install.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/addons/base/module/wizard/wizard_module_lang_install.py b/bin/addons/base/module/wizard/wizard_module_lang_install.py index 0b3c9c7542b..2ebe243b705 100644 --- a/bin/addons/base/module/wizard/wizard_module_lang_install.py +++ b/bin/addons/base/module/wizard/wizard_module_lang_install.py @@ -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 {}