diff options
| author | Christophe Simonis <chs@odoo.com> | 2015-01-19 17:15:56 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2015-01-19 17:15:56 +0100 |
| commit | 18e22be138f4d273ce8f63c0ff2c8a437cf6ce5d (patch) | |
| tree | 63bd658de7b6fa0e91d521ca19322dd68bdc1492 /addons/website/models/website.py | |
| parent | f6e5bf847b1a7107c09b009a757823b0f9514fa4 (diff) | |
| parent | 0aab81cd3ac6881b2b64ccedb901b55badd421d4 (diff) | |
[MERGE] forward port of branch 8.0 up to 0aab81c
Diffstat (limited to 'addons/website/models/website.py')
| -rw-r--r-- | addons/website/models/website.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/website/models/website.py b/addons/website/models/website.py index 513a15676d2..e49773028c9 100644 --- a/addons/website/models/website.py +++ b/addons/website/models/website.py @@ -78,7 +78,8 @@ def is_multilang_url(local_url, langs=None): path = url[0] query_string = url[1] if len(url) > 1 else None router = request.httprequest.app.get_db_router(request.db).bind('') - func = router.match(path, query_args=query_string)[0] + # Force to check method to POST. Odoo uses methods : ['POST'] and ['GET', 'POST'] + func = router.match(path, method='POST', query_args=query_string)[0] return func.routing.get('website', False) and func.routing.get('multilang', True) except Exception: return False |
