summaryrefslogtreecommitdiff
path: root/addons/test_website/tests/__init__.py
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2019-11-15 08:19:43 +0000
committerJeremy Kersten <jke@odoo.com>2019-11-26 14:35:46 +0000
commitdc77f67cad95d0b0bd316cbdfc36a380f2daf73d (patch)
tree2a72a21f498ca6f984af7f230852a62a5f5ecfe5 /addons/test_website/tests/__init__.py
parentef0488ef91161eba5267ea29fa5c6b379c483f29 (diff)
[FIX] website: match get/post in is_multilang_url
Old heuristic is not more True: Force to check method to POST. Odoo uses methods : ['POST'] and ['GET', 'POST'] We have some controller that only allow 'GET' method, so we need to check GET also when we try to know if an url is multilang or not. This commit fix case where a controller '/test' only allow GET and you were in another language that the default, in this case, the rendered url in qweb was /get instead of /<lang>/get. Closes #37223 closes odoo/odoo#40519 X-original-commit: c7650106f8588083be12812600a6c94ba703fd6f Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/test_website/tests/__init__.py')
-rw-r--r--addons/test_website/tests/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/test_website/tests/__init__.py b/addons/test_website/tests/__init__.py
index 4fab1ec9b68..b7044f07875 100644
--- a/addons/test_website/tests/__init__.py
+++ b/addons/test_website/tests/__init__.py
@@ -2,6 +2,7 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import test_controller_args
+from . import test_is_multilang
from . import test_reset_views
from . import test_error
from . import test_views_during_module_operation