Fix fallback value of get_preferences
(transplanted from b70b126c0b22c7db6ad9aeb30a752b47eaeeeba2)
This commit is contained in:
1 parent
c19a0fe809
commit
454192774d
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()
|
||||
common.MODELACCESS.load_models()
|
||||
if prefs and 'language_direction' in prefs:
|
||||
|
||||
Reference in new issue
Block a user