[FIX] http: use default language when lang not in context
This commit is contained in:
committed by
Christophe Simonis
parent
5f41325271
commit
fd92f16801
+2
-1
@@ -207,6 +207,7 @@ class WebRequest(object):
|
||||
|
||||
@lazy_property
|
||||
def lang(self):
|
||||
self.session._fix_lang(self.context)
|
||||
return self.context["lang"]
|
||||
|
||||
@lazy_property
|
||||
@@ -957,7 +958,7 @@ class OpenERPSession(werkzeug.contrib.sessions.Session):
|
||||
|
||||
:param dict context: context to fix
|
||||
"""
|
||||
lang = context['lang']
|
||||
lang = context.get('lang')
|
||||
|
||||
# inane OpenERP locale
|
||||
if lang == 'ar_AR':
|
||||
|
||||
Reference in New Issue
Block a user