summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/services/crash_manager.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/addons/web/static/src/js/services/crash_manager.js b/addons/web/static/src/js/services/crash_manager.js
index b653aaa1c8d..ea0927a9f28 100644
--- a/addons/web/static/src/js/services/crash_manager.js
+++ b/addons/web/static/src/js/services/crash_manager.js
@@ -354,7 +354,18 @@ core.crash_registry.add('odoo.exceptions.RedirectWarning', RedirectWarningHandle
function session_expired(cm) {
return {
display: function () {
- cm.show_warning({type: _t("Odoo Session Expired"), message: _t("Your Odoo session expired. Please refresh the current web page.")});
+ const notif = {
+ type: _t("Odoo Session Expired"),
+ message: _t("Your Odoo session expired. The current page is about to be refreshed."),
+ };
+ const options = {
+ buttons: [{
+ text: _t("Ok"),
+ click: () => window.location.reload(true),
+ close: true
+ }],
+ };
+ cm.show_warning(notif, options);
}
};
}