From d2e98c40b8e905a240d8e080fd19913089e5ae4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 22 Jul 2008 10:09:18 +0200 Subject: [PATCH] Use elif to prevent one test --- trytond/wizard/wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/wizard/wizard.py b/trytond/wizard/wizard.py index 1578e217d4..7319fc0859 100644 --- a/trytond/wizard/wizard.py +++ b/trytond/wizard/wizard.py @@ -255,7 +255,7 @@ class Wizard(object): res['fields'] = fields res['arch'] = arch res['state'] = button_list - if result_def['type'] == 'choice': + elif result_def['type'] == 'choice': next_state = getattr(self, result_def['next_state'])(cursor, user, data, context) if next_state == 'end':