Fix window preference if not logged
This commit is contained in:
1 parent
cdbf18d4e5
commit
49f1dd6f49
1 file changed
+9
-3
@@ -34,9 +34,15 @@ class Preference(object):
|
||||
try:
|
||||
res = user.get_preferences_fields_view(rpc.CONTEXT)
|
||||
except Exception, exception:
|
||||
common.process_exception(exception, parent)
|
||||
self.win.destroy()
|
||||
raise
|
||||
if not common.process_exception(exception, parent):
|
||||
self.win.destroy()
|
||||
raise
|
||||
try:
|
||||
res = user.get_preferences_fields_view(rpc.CONTEXT)
|
||||
except Exception, exception:
|
||||
common.process_exception(exception, parent)
|
||||
self.win.destroy()
|
||||
raise
|
||||
arch = res['arch']
|
||||
fields = res['fields']
|
||||
self.screen = Screen('res.user', self.win, view_type=[])
|
||||
|
||||
Reference in new issue
Block a user