[MERGE] lp: 876260

bzr revid: qdp-launchpad@openerp.com-20111114134811-j3cnvn6mcle869or
This commit is contained in:
Quentin (OpenERP) 2011-11-14 14:48:11 +01:00
commit 16006b42e3
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,9 @@ class res_config_configurable(osv.osv_memory):
res = next.action_launch(context=context)
res['nodestroy'] = False
return res
#if there is no next action and if html is in the context: reload instead of closing
if 'html' in context:
return {'type' : 'ir.actions.reload'}
return {'type' : 'ir.actions.act_window_close'}
def start(self, cr, uid, ids, context=None):