diff options
| author | Romain Derie <rde@odoo.com> | 2019-03-26 05:56:55 +0000 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2019-08-26 16:35:19 +0000 |
| commit | 269aa594111a152ad4b7714856ea745bfef57155 (patch) | |
| tree | d5f8f7e86209102d831b2e222038d45bd7fe7626 /odoo/http.py | |
| parent | f10f120de3017bc8d0e9a5ac72eeec1280374a1d (diff) | |
[IMP] http_routing, website: allow to customize the lang in URL
With this commit it is now possible to change the lang displayed in the URL.
Eg, you could use `/fr` instead of `/fr_BE`, or even a fancier `/french`.
Task-32838
Courtesy of pla@odoo.com
closes odoo/odoo#35135
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Diffstat (limited to 'odoo/http.py')
| -rw-r--r-- | odoo/http.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/odoo/http.py b/odoo/http.py index 25200ebcecf..146d79f6aa6 100644 --- a/odoo/http.py +++ b/odoo/http.py @@ -84,7 +84,6 @@ ALLOWED_DEBUG_MODES = ['', '1', 'assets', 'tests'] #---------------------------------------------------------- # Thread local global request object _request_stack = werkzeug.local.LocalStack() - request = _request_stack() """ A global proxy that always redirect to the current request object. @@ -270,13 +269,6 @@ class WebRequest(object): return self._env @lazy_property - def lang(self): - context = dict(self.context) - self.session._fix_lang(context) - self.context = context - return context["lang"] - - @lazy_property def session(self): """ :class:`OpenERPSession` holding the HTTP session data for the current http session |
