projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f652402
)
[FIX] chrome.js: detect correct error type for session expired
author
Olivier Dony
<odo@openerp.com>
Fri, 28 Mar 2014 14:23:09 +0000
(15:23 +0100)
committer
Olivier Dony
<odo@openerp.com>
Fri, 28 Mar 2014 14:23:09 +0000
(15:23 +0100)
bzr revid: odo@openerp.com-
20140328142309
-apraiq42f3xavqda
addons/web/static/src/js/chrome.js
patch
|
blob
|
history
diff --git
a/addons/web/static/src/js/chrome.js
b/addons/web/static/src/js/chrome.js
index
1998106
..
add3086
100644
(file)
--- a/
addons/web/static/src/js/chrome.js
+++ b/
addons/web/static/src/js/chrome.js
@@
-256,7
+256,7
@@
instance.web.CrashManager = instance.web.Class.extend({
new (handler)(this, error).display();
return;
}
- if (error.data.name === "openerp.http.SessionExpiredException") {
+ if (error.data.name === "openerp.http.SessionExpiredException" || error.data.name === "werkzeug.exceptions.Forbidden") {
this.show_warning({type: "Session Expired", data: { message: _t("Your OpenERP session expired. Please refresh the current web page.") }});
return;
}