From 6f22caee304a1b99085e6559dc61220cb6fe4567 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 29 Jun 2012 11:57:53 +0200 Subject: [PATCH] [FIX] server action not returning anything should be treated as an empty action descriptor bzr revid: xmo@openerp.com-20120629095753-n7o6armcs68y8dsr --- addons/web/controllers/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 155b327395a..b89bac53854 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -676,6 +676,8 @@ def load_actions_from_ir_values(req, key, key2, models, meta): for id, name, action in actions] def clean_action(req, action, do_not_eval=False): + if action is False: + action = {} action.setdefault('flags', {}) context = req.session.eval_context(req.context)