diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-08-14 18:24:40 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-08-14 18:24:40 +0200 |
| commit | 51225c9b9f20c59eac1cd2ac117f9899ee76e391 (patch) | |
| tree | 5d6ee073c26c565c157bc5d983c34dc59c375911 /odoo/exceptions.py | |
| parent | 388bc549c1cf5ae780e86f08500269b7d706a79d (diff) | |
| parent | 52e88036f25bb72c3d86101531b484318ce974a5 (diff) | |
[MERGE] forward port branch saas-15 up to 52e88036f25
Diffstat (limited to 'odoo/exceptions.py')
| -rw-r--r-- | odoo/exceptions.py | 4 |
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): |
