diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index bd9f06625bd..d1feb19e3d1 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -1209,8 +1209,8 @@ class DataSet(openerpweb.Controller): def call_button(self, req, model, method, args, domain_id=None, context_id=None): action = self.call_common(req, model, method, args, domain_id, context_id) if isinstance(action, dict) and action.get('type') != '': - return {'result': clean_action(req, action)} - return {'result': False} + return clean_action(req, action) + return False @openerpweb.jsonrequest def exec_workflow(self, req, model, id, signal):