[FIX] Fixed return type in DataSet.call_button controller.

bzr revid: vta@openerp.com-20121004115011-702ut2j0358rw6cq
This commit is contained in:
vta vta@openerp.com 2012-10-04 13:50:11 +02:00
parent bc650ac97c
commit f29a405729
1 changed files with 2 additions and 2 deletions

View File

@ -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):