b4f132ca21f8ef32ef9890bef96a8252df3e2d25
Before this commit, chat windows could not be sync'ed between browser tabs for about 10 to 20 seconds. This issue is caused by the implementation of the crosstab longpolling, which uses a master-slave architecture with a single tab being the master tab. The master tab is responsible for performing the longpolling RPC, so that it keeps a single HTTP request for all Odoo tabs. Other tabs are synchronized through the local storage. When the master tab was closed, a new master tab election must occur. However, this process was taking up to 20 seconds, due to the tab waiting for their next tick on the local storage to initiate a new election. The tick for a slave tab is 10 seconds, and it may jumps a tick in case the master tab is closed exactly before the tick, hence extending the duration to 20 seconds. This commit fixes the problem by ensuring that the tab election for the longpolling is done right after the master tab is closed. As a result, a new master tab should follow right away. Steps to reproduce: 1. open two tabs. 2. open a chat window in one tab: it opens in both tabs. 3. fold/unfold chat window in one tab: both tab should sync. 4. refresh both tabs. 5. fold/unfold chat window in one tab: both tab should not sync. 6. after 10 or 20 seconds, both tabs should again sync. Task-ID 1911437 closes odoo/odoo#28925
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, Purchase Management, ...
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.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%