diff --git a/odoo/http.py b/odoo/http.py index c32d0178b8a..338ebb30099 100644 --- a/odoo/http.py +++ b/odoo/http.py @@ -167,7 +167,7 @@ def redirect_with_hash(url, code=303): # See extensive test page at http://greenbytes.de/tech/tc/httpredirects/ if request.httprequest.user_agent.browser in ('firefox',): return werkzeug.utils.redirect(url, code) - if urlparse.urlparse(url, scheme='http').scheme not in ('http', 'https'): + if urlparse(url, scheme='http').scheme not in ('http', 'https'): url = 'http://' + url url = url.replace("'", "%27").replace("<", "%3C") return "
" % url