562c760ce89c1653b55eb867144392fb38bb4be0
Starting from [1], a `willDestroyEditors` attribute was added to prevent race conditions caused by an update on options visibility during the "save" (after checking the code, it seems that the issue here was caused by the `hide.bs.modal.SnippetPopup` event which triggers the `_onSnippetOptionVisibilityUpdate()` handler on `snippetMenu`, leading to a traceback if editors are destroyed). So with this fix, the visibility update will be ignored during the save process. [A] Note that `willDestroyEditors` is set to `true` on `cleanForSave()` and never set to `false` after saving the content or destroying the editors. Another fix was added in [2] to prevent the click (before the preview is blocked) on the page while saving, and uses the `willDestroyEditors` attribute to ignore the click. Now since `cleanForSave()` is called on `MassMailingHtmlField` > `commitChanges()` and because of [A], the click will be always ignored on this field's content. The goal of this commit is to fix this behavior using a global `savingContent` indicator which will be used to handle both cases (a click on page & options visibility update) during the save. It will be only set to `true` during the content save. Note: the forward-port of [1] actually took too long to reach master. Actually [2] already reached master, having no effect as relying on [1]. This commit here will actually be merged first (preventing [2] to create the mass mailing bug when [1] reaches master). [1]'s forward-ported version will actually be the commit following this one. [1]: https://github.com/odoo/odoo/commit/47cdb15082f774da0aa07e289361445ddc3a48f1 [2]: https://github.com/odoo/odoo/commit/6bf3823c2996af4ec0534ff69471887ac43a8ddf X-original-commit: b2b8590d19e07659c6ad7c3e3afba0a848b414a5 Part-of: odoo/odoo#107387
…
…
…
…
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%