summaryrefslogtreecommitdiff
path: root/odoo/exceptions.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-08-14 20:16:03 +0200
committerChristophe Simonis <chs@odoo.com>2018-08-14 20:16:03 +0200
commit0ac7f8fbe62cf52fe43d73561a0bbd205c48e810 (patch)
tree1dfef6a191d118ddaa25380723e27485dd35c985 /odoo/exceptions.py
parent8c2b380768b813915b0fa90c8e832a29a13ccbb7 (diff)
parentdabe59df9c84d5dbb7109decb193606b8cc2efe0 (diff)
[MERGE] forward port branch saas-11.4 up to dabe59df9c8
Diffstat (limited to 'odoo/exceptions.py')
-rw-r--r--odoo/exceptions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/odoo/exceptions.py b/odoo/exceptions.py
index c969d077a86..a6e347f86f4 100644
--- a/odoo/exceptions.py
+++ b/odoo/exceptions.py
@@ -46,6 +46,10 @@ class RedirectWarning(Exception):
:param string button_text: text to put on the button that will trigger
the redirection.
"""
+ # using this RedirectWarning won't crash if used as an except_orm
+ @property
+ def name(self):
+ return self.args[0]
class AccessDenied(Exception):