mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 08:32:03 +02:00
18.0 vanilla
This commit is contained in:
parent
d72e748793
commit
0a7ae8db93
337 changed files with 399651 additions and 232598 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue