diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-01-23 15:46:05 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-01-23 15:46:05 +0100 |
| commit | ad461e18b4ddda6c7c362faeecd0f8b6d8cd2b45 (patch) | |
| tree | 350d016e21924ab753e3c6e343a3e4220cc2fe5d /addons/web/controllers/main.py | |
| parent | ac8532f801fed592f64e2a4692e242964f0a0e54 (diff) | |
[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
Diffstat (limited to 'addons/web/controllers/main.py')
| -rw-r--r-- | addons/web/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
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( |
