[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:
parent
ac8532f801
commit
ad461e18b4
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue