9bf36e00a45654f6f2bd5ab91e8e3b646c99746d
When the bus service is loaded, it connects to the websocket worker and passes some information that are used to determine whether the websocket connection is outdated. Amongst them, the user id is used to detect when the user changed and when the websocket connection should be refreshed. This is not enough to ensure the websocket connection is still relevant: the user id could be the same but the db could have changed. The websocket would then be linked to the previous database. This commit fixes the issue by sending the db name alongside the user id. This will ensure the connection is refreshed when it is outdated. Steps to reproduce the issue: - Log in on db1 on 2 tabs - Log out - Log in on db2 - Try to star a message in the discuss app - Nothing happens, the messages are sent from db2 but the socket listens to db1 closes odoo/odoo#141263 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%