|
|
@ -410,3 +410,18 @@ class Main(http.Controller): |
|
|
|
response=None, |
|
|
|
status=302, |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
from odoo.http import Root, HttpRequest |
|
|
|
|
|
|
|
def patch_get_request(f): |
|
|
|
# deduce type of request |
|
|
|
def patched(self, httprequest): |
|
|
|
if httprequest.path == "/oauth/userinfo" and httprequest.method == "GET": |
|
|
|
return HttpRequest(httprequest) |
|
|
|
return f(self, httprequest) |
|
|
|
|
|
|
|
return patched |
|
|
|
|
|
|
|
|
|
|
|
Root.get_request = patch_get_request(Root.get_request) |