[FIX] web: handle SessionExpiredException in the crash_manager
This commit is contained in:
@@ -54,7 +54,7 @@ var CrashManager = core.Class.extend({
|
||||
new (handler)(this, error).display();
|
||||
return;
|
||||
}
|
||||
if (error.data.name === "openerp.http.SessionExpiredException" || error.data.name === "werkzeug.exceptions.Forbidden") {
|
||||
if (error.data.name === "odoo.http.SessionExpiredException" || error.data.name === "werkzeug.exceptions.Forbidden") {
|
||||
this.show_warning({type: "Session Expired", data: { message: _t("Your Odoo session expired. Please refresh the current web page.") }});
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user