a817a865c37b3ce39a143efd97fd8a9aa74bf3d8
Sometimes, there is a crash when uploading a file when loading an article for the first time. Impacted versions: 16.0+ How to reproduce: - open the odoo home page (module menu) and CTRL+f5 (force reload) - go to the knowledge app - in an article, put the cursor somewhere and type ENTER to create a new line - type the /file command in that line - try to upload a file - traceback (if it does not happen, try again from the first step, it is not always consistent) Fix: Delay the _onBlur handling of the wysiwig when using the modal. The Blur event may occur and may trigger an update on the html_field, which may in turn induce a rerendering of the component and its value. We don't want this to occur when using the modal, because the selection was registered by the modal to restore it when the modal closes (`preserveCursor`). If the contents of the html_field are updated, then the stored position used to restore the selection won't be in the DOM anymore, and the restoration will fail. As such when we try to insert the Knowledge file block, the selection is not in the editor and the method fails. Task-2889670 Task-3128388 Task-3086694 X-original-commit: 2591d343793f59e2e70e7ffe8fa666661995348f Part-of: odoo/odoo#110089 Co-authored-by: Antoine Guenet <age@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%