[FIX] display config after immediate install (if any)
authorChristophe Simonis <chs@openerp.com>
Tue, 13 Dec 2011 11:44:42 +0000 (12:44 +0100)
committerChristophe Simonis <chs@openerp.com>
Tue, 13 Dec 2011 11:44:42 +0000 (12:44 +0100)
bzr revid: chs@openerp.com-20111213114442-tcyuyazfvfo868ul

openerp/addons/base/module/module.py

index 05ad5fc..9f70f3e 100644 (file)
@@ -330,6 +330,11 @@ class module(osv.osv):
         self.state_update(cr, uid, ids, 'to install', ['uninstalled'], context)
         cr.commit()
         db, pool = pooler.restart_pool(cr.dbname, update_module=True)
+
+        config = pool.get('res.config').next(cr, uid, [], context=context)
+        if config:
+            return config
+
         menu_ids = self.root_menus(cr,uid,ids,context)
         if menu_ids:
             action = {