From bb510e19b6163564f1674e31fa09e3d6bb475954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 28 Mar 2008 15:32:36 +0100 Subject: [PATCH] Don't set datas in return of wizard if there is no actions --- trytond/wizard/wizard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trytond/wizard/wizard.py b/trytond/wizard/wizard.py index 5bd8a859ae..2261bf24d2 100644 --- a/trytond/wizard/wizard.py +++ b/trytond/wizard/wizard.py @@ -178,7 +178,8 @@ class Wizard(object): actions_res.update(action_res) res = copy.copy(result_def) - res['datas'] = actions_res + if state_def.get('actions'): + res['datas'] = actions_res lang = context.get('language', 'en_US') if result_def['type'] == 'action':