mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] auth_admin: deprecated Warning exception
This commit is contained in:
@@ -77,7 +77,7 @@ class ResUsers(models.Model):
|
||||
|
||||
login_url = admin_auth_generate_login(self.env, self)
|
||||
if login_url:
|
||||
raise exceptions.Warning(login_url)
|
||||
raise exceptions.UserError(login_url)
|
||||
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user