diff --git a/addons/auth_oauth/controllers/main.py b/addons/auth_oauth/controllers/main.py index a4b474f1f09..e932b6ca1c0 100644 --- a/addons/auth_oauth/controllers/main.py +++ b/addons/auth_oauth/controllers/main.py @@ -68,7 +68,7 @@ class OAuthLogin(openerp.addons.web.controllers.main.Home): @http.route() def web_login(self, *args, **kw): - # TODO: ensure_db() + http.ensure_db(with_registry=True) request.disable_db = False providers = self.list_providers() diff --git a/addons/auth_signup/controllers/main.py b/addons/auth_signup/controllers/main.py index d1e58facf7f..7a517a0ef8c 100644 --- a/addons/auth_signup/controllers/main.py +++ b/addons/auth_signup/controllers/main.py @@ -34,8 +34,7 @@ class Home(openerp.addons.web.controllers.main.Home): @http.route() def web_login(self, *args, **kw): - # TODO: ensure_db() - request.disable_db = False + http.ensure_db(with_registry=True) mode = request.params.get('mode') qcontext = request.params.copy()