[IMP] controller/main.py: when a sever action returns False, do not try to executed it.
bzr revid: tde@openerp.com-20120626114408-a8qm0oaxywl8iqle
This commit is contained in:
parent
b1cbf64331
commit
17a46b7836
|
@ -1520,8 +1520,12 @@ class Action(openerpweb.Controller):
|
|||
|
||||
@openerpweb.jsonrequest
|
||||
def run(self, req, action_id):
|
||||
return clean_action(req, req.session.model('ir.actions.server').run(
|
||||
[action_id], req.session.eval_context(req.context)))
|
||||
return_action = req.session.model('ir.actions.server').run(
|
||||
[action_id], req.session.eval_context(req.context))
|
||||
if return_action:
|
||||
return clean_action(req, return_action)
|
||||
else:
|
||||
return False
|
||||
|
||||
class Export(View):
|
||||
_cp_path = "/web/export"
|
||||
|
|
Loading…
Reference in New Issue