[FIX] menu loading after immediate install of modules

bzr revid: chs@openerp.com-20111213151207-hj7xnc5980ahvv2i
This commit is contained in:
Christophe Simonis 2011-12-13 16:12:07 +01:00
parent 987a9cc07b
commit 41a105f744
1 changed files with 2 additions and 2 deletions

View File

@ -331,8 +331,8 @@ class module(osv.osv):
cr.commit()
db, pool = pooler.restart_pool(cr.dbname, update_module=True)
config = pool.get('res.config').next(cr, uid, [], context=context)
if config:
config = pool.get('res.config').next(cr, uid, [], context=context) or {}
if config.get('type') not in ('ir.actions.reload', 'ir.actions.act_window_close'):
return config
menu_ids = self.root_menus(cr,uid,ids,context)