From 739038204db36d07eb27a6c963372e70e01ac673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 5 Mar 2012 10:30:36 +0100 Subject: [PATCH] Reload context at the end of wizard only for config wizard Reloading context at the end of all wizard, makes the client lost the company context of the current session. issue2457 review252001 --- tryton/gui/window/wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tryton/gui/window/wizard.py b/tryton/gui/window/wizard.py index 6c89aa809f..46c1877789 100644 --- a/tryton/gui/window/wizard.py +++ b/tryton/gui/window/wizard.py @@ -133,8 +133,8 @@ class Wizard(object): try: rpc.execute('wizard', self.action, 'delete', self.session_id, rpc.CONTEXT) - #XXX to remove when company displayed in status bar - rpc.context_reload() + if self.action == 'ir.module.module.config_wizard': + rpc.context_reload() except TrytonServerError: pass