[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
This commit is contained in:
Xavier Morel 2012-01-23 15:46:05 +01:00
parent ac8532f801
commit ad461e18b4
1 changed files with 1 additions and 1 deletions

View File

@ -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(