diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-08-14 17:45:46 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-08-14 17:45:46 +0200 |
| commit | 52e88036f25bb72c3d86101531b484318ce974a5 (patch) | |
| tree | 319fdcaa572ef78761c1430d4239ccecbe97bdb7 /odoo/exceptions.py | |
| parent | e7ccf38c48b843266a9239fdfb3aa5da05be5c07 (diff) | |
| parent | d4ee30b4facdb6a6fed8ba66445ffe5af0f47251 (diff) | |
[MERGE] forward port branch saas-14 up to d4ee30b4fac
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 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): |
