summaryrefslogtreecommitdiff
path: root/odoo/exceptions.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-08-14 17:45:46 +0200
committerChristophe Simonis <chs@odoo.com>2018-08-14 17:45:46 +0200
commit52e88036f25bb72c3d86101531b484318ce974a5 (patch)
tree319fdcaa572ef78761c1430d4239ccecbe97bdb7 /odoo/exceptions.py
parente7ccf38c48b843266a9239fdfb3aa5da05be5c07 (diff)
parentd4ee30b4facdb6a6fed8ba66445ffe5af0f47251 (diff)
[MERGE] forward port branch saas-14 up to d4ee30b4fac
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 edde12cb3ae..6b4a16102cb 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):