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
This commit is contained in:
Cédric Krier committed 2012-03-05 10:30:36 +01:00
1 parent ad16d3232f
commit 739038204d
1 file changed
+2 -2
+2 -2
View File
@@ -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