summaryrefslogtreecommitdiff
path: root/odoo/exceptions.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-08-14 19:43:32 +0200
committerChristophe Simonis <chs@odoo.com>2018-08-14 19:43:32 +0200
commitdabe59df9c84d5dbb7109decb193606b8cc2efe0 (patch)
tree412a986b495a3c104b51c60be453dd7b663389fe /odoo/exceptions.py
parente08f947abe5dc53768eb20463133c5fef177d816 (diff)
parent27d8daf8a75845fa1e23676b91776a0e0a8b5165 (diff)
[MERGE] forward port branch saas-11.3 up to 27d8daf8a75
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 c318f9ecdac..6807485e80a 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):