Fix fallback value of get_preferences

(transplanted from b70b126c0b22c7db6ad9aeb30a752b47eaeeeba2)
This commit is contained in:
Cédric Krier committed 2013-08-01 15:59:57 +02:00
1 parent c19a0fe809
commit 454192774d
1 file changed
+1 -1
+1 -1
View File
@@ -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: