diff --git a/test_themes/models/ir_http.py b/test_themes/models/ir_http.py index 3eb24d069..cce730aca 100644 --- a/test_themes/models/ir_http.py +++ b/test_themes/models/ir_http.py @@ -10,9 +10,9 @@ class Http(models.AbstractModel): @classmethod def _pre_dispatch(cls, rule, args): - super()._pre_dispatch(rule, args) - # Allow public user to use `fw` query string in test mode to ease tests force_website_id = request.httprequest.args.get('fw') if (request.registry.in_test_mode() or tools.config.options['test_enable']) and force_website_id: request.env['website']._force_website(force_website_id) + + super()._pre_dispatch(rule, args)