From ad461e18b4ddda6c7c362faeecd0f8b6d8cd2b45 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 23 Jan 2012 15:46:05 +0100 Subject: [PATCH] [FIX] onchange: handlers can return 'False' instead of en empty dict when they don't want to return anything, don't blow up lp bug: https://launchpad.net/bugs/920443 fixed bzr revid: xmo@openerp.com-20120123144605-j2jqvaelro0dv28f --- addons/web/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 35705a267df..26e7d6baba6 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -880,7 +880,7 @@ class DataSet(openerpweb.Controller): :return: result of the onchange call with all domains parsed """ result = self.call_common(req, model, method, args, context_id=context_id) - if 'domain' not in result: + if not result or 'domain' not in result: return result result['domain'] = dict(