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