From c418cfcb9d64adad95b71aad86049c9b33527c1f Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 17 Nov 2011 13:03:18 +0100 Subject: [PATCH] [FIX] res.config: ensure there is a context before checking its content lp bug: https://launchpad.net/bugs/891187 fixed bzr revid: xmo@openerp.com-20111117120318-r9mns1w1vh9ea22b --- openerp/addons/base/res/res_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'}