From af2e480e419b5817933fb5250fb84fa99e5c3839 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 23 Jul 2018 13:25:42 +0200 Subject: [PATCH] [FIX] http: refresh request environment after authentication This allow the `/web/session/authenticate` route to return correct partner and company. Closes #25652 --- openerp/http.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openerp/http.py b/openerp/http.py index 22a9ce5ccf3..fb569330c64 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -1135,6 +1135,8 @@ class OpenERPSession(werkzeug.contrib.sessions.Session): request.uid = uid request.disable_db = False + del request.env + if uid: self.get_context() return uid