[FIX] chrome.js: detect correct error type for session expired
bzr revid: odo@openerp.com-20140328142309-apraiq42f3xavqda
This commit is contained in:
parent
f652402dd7
commit
9379dc0312
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue