28d1894049921a78f396207912f955137aeea2fa
After [1], when an option that requires the page to be reloaded is changed, the editor will try its best to reselect the same snippet. However, in some scenarios, the snippets' options could not be activated leaving the menu on the snippet drag and drop menu. Steps to reproduce (race condition so might not always occur): - Activate the cookie bar in the website settings - In edit mode change the header menu style - The Snippets Drag and Drop menu is displayed - Instead the Header Options should be displayed The reason is that an event is not 'awaited'. Indeed, when starting the editor, a 'widgets_start_request' is fired and not awaited. It creates a race condition that is visible in this case but could have caused other issue. For the in-depth technical reason this happens: - The wysiwyg is started, the popup is on screen, its options are loaded by default (since it's needed to populate the invisibleDOM panel) - activateSnippet is triggered with the Snippet it should focus on after reloading - widgets_start_request is triggered which destroys the popup and triggers an 'onHide' event within the option - The triggers a 'snippet_option_visibility_update' which triggers an activateSnippet(false) which hides everything that was enabled prior to this point. This commit fixes the issue by re-ordering the events and making sure that the 'widgets_start_request' is awaited [1]: https://github.com/odoo/odoo/commit/a3e34512bf229d5d55f9e9d9eb0a9f7211a5a826 task-2687506 closes odoo/odoo#105816 X-original-commit: 5a2d0a2a88b9ecc2c330a948dfd9140b9edc3af3 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com> Signed-off-by: Arthur Detroux (ard) <ard@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%