OdooWiki OCA HUB

Switch Context Warning

web_switch_context_warning folder_open OCA/web open_in_new
web License: AGPL-3

In Odoo 14 possible to work in different tabs with different companies, now the module only shows a warning when the user or database has been switched.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Shows a warning banner at the top of the screen when you are logged in as a different user or database in another browser tab or window, so you know your session may be out of date.

This module adds a safety warning for people who work with several Odoo tabs or windows open at the same time.

When you open Odoo in more than one tab or window and switch to a different user or a different database in one of them, the other tabs can keep showing data from the old session. This module detects that situation and displays a yellow warning banner at the top of the page.

  • The banner appears just below the main navigation bar and says that you switched to a different user or database in another tab or window.
  • It includes a Reload button that refreshes the page so your session is up to date.
  • The banner stays hidden while all tabs use the same user and database, and only appears when a difference is detected.
  • The detection works between tabs of the same browser; it relies on a browser feature called SharedWorker, so on browsers that do not support it the warning is simply not shown.

No new menus, models or business documents are added. The module only changes the web interface by adding this banner and the small background process that compares the current user and database across tabs.

Depends on

web

Text generated by AI (DeepSeek) from reading the Odoo 14.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.