diff options
| author | David Monjoie <dmo@odoo.com> | 2014-11-13 09:51:25 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2014-12-12 15:11:08 +0100 |
| commit | fd92f168017c6ecdd300c707d4004df2eb080bfc (patch) | |
| tree | 811e4fa4ab7fd77c5337b75dede6fc283bddc16b | |
| parent | 5f41325271f0ce18fd01c278c74ae474fc8111ea (diff) | |
[FIX] http: use default language when lang not in context
| -rw-r--r-- | openerp/http.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openerp/http.py b/openerp/http.py index eddbcb669a3..f25d77fa3a7 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -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': |
