18.0 vanilla

This commit is contained in:
Ernad Husremovic 2025-10-03 18:06:50 +02:00
parent d72e748793
commit 0a7ae8db93
337 changed files with 399651 additions and 232598 deletions

View file

@ -12,8 +12,6 @@ treated as a 'Server error'.
check out the :mod:`odoo.addons.test_exceptions` module.
"""
import warnings
class UserError(Exception):
"""Generic error managed by the client.
@ -43,14 +41,6 @@ class RedirectWarning(Exception):
def __init__(self, message, action, button_text, additional_context=None):
super().__init__(message, action, button_text, additional_context)
# using this RedirectWarning won't crash if used as an UserError
@property
def name(self):
warnings.warn(
"RedirectWarning attribute 'name' is a deprecated alias to args[0]",
DeprecationWarning)
return self.args[0]
class AccessDenied(UserError):
"""Login/password error.