[FIX] menu loading after immediate install of modules
bzr revid: chs@openerp.com-20111213151207-hj7xnc5980ahvv2i
This commit is contained in:
parent
987a9cc07b
commit
41a105f744
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue