From 18d3904a98c73df5afa5b24febbc02bf2e62fbf6 Mon Sep 17 00:00:00 2001 From: Leighton Pennicott Date: Tue, 10 Nov 2020 16:45:31 -0500 Subject: [PATCH] [MIG] auth_admin: migrate to Odoo 14.0 --- auth_admin/models/res_users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth_admin/models/res_users.py b/auth_admin/models/res_users.py index 074abca0..e597dd74 100755 --- a/auth_admin/models/res_users.py +++ b/auth_admin/models/res_users.py @@ -81,9 +81,9 @@ class ResUsers(models.Model): return False - def _check_credentials(self, password): + def _check_credentials(self, password, env): try: - return super(ResUsers, self)._check_credentials(password) + return super(ResUsers, self)._check_credentials(password, env) except exceptions.AccessDenied: if request and hasattr(request, 'session') and request.session.get('auth_admin'): _logger.warn('_check_credentials for user id: ' + \