diff --git a/openerp/addons/base/res/res_config.py b/openerp/addons/base/res/res_config.py index 62edb0a842c..04f0f571f3d 100644 --- a/openerp/addons/base/res/res_config.py +++ b/openerp/addons/base/res/res_config.py @@ -71,7 +71,7 @@ class res_config_configurable(osv.osv_memory): 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: + if context and 'html' in context: return {'type' : 'ir.actions.reload'} return {'type' : 'ir.actions.act_window_close'}