Hello all,
In the file :
odoo-8.0-20150920/openerp/addons/web/controllers/main.py
There is the method :
def login_redirect():
url = '/web/loginPTPTPTPT555?'
# built the redirect url, keeping all the query parameters of the url
redirect_url = '%s?%s' % (request.httprequest.base_url, werkzeug.urls.url_encode(request.params))
return """<html><head><script>
window.location = '%sredirect=' + encodeURIComponent("%s" + location.hash);
</script></head></html>
""" % (url, redirect_url)
How to override such a method who is not in a class?