Fix fallback value of get_preferences
(transplanted from b70b126c0b22c7db6ad9aeb30a752b47eaeeeba2)
This commit is contained in:
1 parent
b5092645af
commit
ac720ef80d
1 file changed
+1
-1
+1
-1
@@ -928,7 +928,7 @@ class Main(object):
|
||||
prefs = RPCExecute('model', 'res.user', 'get_preferences',
|
||||
False)
|
||||
except RPCException:
|
||||
prefs = None
|
||||
prefs = {}
|
||||
common.ICONFACTORY.load_icons()
|
||||
if prefs and 'language_direction' in prefs:
|
||||
translate.set_language_direction(prefs['language_direction'])
|
||||
|
||||
Reference in new issue
Block a user