[imp] when configuration is done, switch to current user menu view instead of closing current window… maybe?

bzr revid: xmo@tinyerp.com-20091216133335-a33n1jobttujuq53
This commit is contained in:
Xavier Morel
2009-12-16 14:33:35 +01:00
parent 18c7c954d3
commit d93aa372fd
+6 -1
View File
@@ -83,7 +83,12 @@ class res_config_configurable(osv.osv_memory):
self.logger.notifyChannel(
'actions', netsvc.LOG_INFO,
'all configuration actions have been executed')
return {'type': 'ir.actions.act_window_close'}
current_user_menu = self.pool.get('res.users')\
.browse(cr, uid, uid).menu_id
# return the action associated with the menu
return self.pool.get(current_user_menu.type)\
.read(cr, uid, current_user_menu.id)
def next(self, cr, uid, ids, context=None):
return self._next(cr, uid)