From 35a35c367ba9a73f4c194912e966e8717fc3e536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 7 Apr 2010 08:14:53 +0200 Subject: [PATCH] Stop wizard execution if access denied for issue1491 --- tryton/wizard/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tryton/wizard/main.py b/tryton/wizard/main.py index abf6b01b0f..31d1511c85 100644 --- a/tryton/wizard/main.py +++ b/tryton/wizard/main.py @@ -188,7 +188,10 @@ class Wizard(object): res = rpcprogress.run() except Exception, exception: common.process_exception(exception, parent) - # Continue by running previous result + # Continue by running previous result except if access to + # wizard is denied + if exception.args[0] == 'AccessDenied': + break if not res: if dia: res = {'type': 'form'}