[FIX] server action not returning anything should be treated as an empty action descriptor

bzr revid: xmo@openerp.com-20120629095753-n7o6armcs68y8dsr
This commit is contained in:
Xavier Morel
2012-06-29 11:57:53 +02:00
parent c576c4c2e9
commit 6f22caee30
+2
View File
@@ -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)