4f0b262dbeda8f8ebb8483f9dac090bac55c041d
Since 16.3, opening the web client on the Odoo backends results in two subscribe events being sent through the bus websocket. Discuss listens to the thread changes to know when the subscription should be refreshed. In order to do so, the last subscription that was made is kept. This issue is that this subscription is empty in the first place so the first evaluation always considers the subscription should be made. In order to fix this issue, this PR refine the condition to determine if the subscription should be renewed: - The last subscription is different from the last one - The user joined a channel after the bus initialization - The user left a channel after the bus initialization In order to test those scenario in a reliable way, this PR also backports odoo#147455 closes odoo/odoo#154170 X-original-commit: 109b45f Signed-off-by: Sébastien Theys (seb) <seb@odoo.com> Signed-off-by: Matthieu Stockbauer (tsm) <tsm@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%