summaryrefslogtreecommitdiff
path: root/odoo/exceptions.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-08-14 17:09:32 +0200
committerChristophe Simonis <chs@odoo.com>2018-08-14 17:09:32 +0200
commitd4ee30b4facdb6a6fed8ba66445ffe5af0f47251 (patch)
tree592b1b39383c3984610e6e124f2ce24dbfb0419d /odoo/exceptions.py
parent42f87c73fde1567ad7d1e05909861e47735c9b20 (diff)
parenta487d7d3973a83c3aecfeaab5f48644af45382ef (diff)
[MERGE] forward port branch 10.0 up to a487d7d3973
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):