diff options
| author | Goffin Simon <sig@odoo.com> | 2017-03-22 17:03:23 +0100 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2017-03-22 17:03:23 +0100 |
| commit | 0b529cf3af4e9efc19204478e656aaa2ecaa6547 (patch) | |
| tree | 536d0fdee472bed1f9e5c15510eeb8f75f2fe0fe | |
| parent | 5761b9a388edf0cd5d92ab280f4b78c6e84867aa (diff) | |
[FIX] http: setup_lang in Safari
Fine tuning of this commit: 5761b9a388edf0cd5d92ab280f4b78c6e84867aa
opw:716519
| -rw-r--r-- | demo_10.sql | 0 | ||||
| -rw-r--r-- | openerp/http.py | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/demo_10.sql b/demo_10.sql new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/demo_10.sql diff --git a/openerp/http.py b/openerp/http.py index c0ca2489afc..e3de9c95665 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -1364,7 +1364,7 @@ class Root(object): if territory: lang = '%s_%s' % (code, territory) else: - lang = babel.code.LOCALE_ALIASES[code] + lang = babel.core.LOCALE_ALIASES[code] except (ValueError, KeyError): lang = 'en_US' httprequest.session.context["lang"] = lang |
