diff --git a/addons/auth_oauth/controllers/main.py b/addons/auth_oauth/controllers/main.py index 0e4d5572c52..a4b474f1f09 100644 --- a/addons/auth_oauth/controllers/main.py +++ b/addons/auth_oauth/controllers/main.py @@ -83,10 +83,10 @@ class OAuthLogin(openerp.addons.web.controllers.main.Home): error = _("You do not have access to this database or your invitation has expired. Please ask for an invitation and be sure to follow the link in your invitation email.") else: error = None - response.params['values'].update( - providers=providers, - error=error, - ) + + response.params['values']['providers'] = providers + if error: + response.params['values']['error'] = error return response