f2ea69a8cfab11f8537bc843b8a68555cae22707
Steps to reproduce the bug: - Add a "Text-Image" snippet on the website page. - Take an "Inner content" snippet from the right panel and drag it from a dropzone to another. It has to be fast so that the order of the "over" and "out" dropzone events is "over" > "over" > "out" and not "over" > "out" > "over" as usual. -> The exited dropzone is not correctly displayed. The problem is that since [1], the website is inside of an iframe. Due to that, the snippets menu does not have a direct access to the dropzones. To solve the problem, the already defined `$dropZones` variable is used instead of searching the dropzones inside the DOM. For the snippet editor, the problematic line has been deleted at it is already handled by `_outPreviousDropzone()`. This is acceptable since the commit that introduced `_outPreviousDropzone()` ([2]) and the commit that introduced the removed line ([3]) were both introduced to handle the case of an "over" after an "over". In other words, as `self.droppped` will always be `true` when `self.dragState.currentDropzoneEl` is set and it will always be `false` when `self.dragState.currentDropzoneEl` is not set, the problematic line can be removed as it is already handled in `outPreviousDropzone()`. [1]: https://github.com/odoo/odoo/commit/31cc10b [2]: https://github.com/odoo/odoo/commit/c6886410603a16b6a3c5fe459d273dd883c110c7 [3]: https://github.com/odoo/odoo/commit/fed5854e32bcddf8b14b8311b2fe542eed990f77 task-3522552 closes odoo/odoo#137255 X-original-commit: 06fde42d3ba0e8be2128cda8e695c5def917f391 Signed-off-by: Benjamin Vray (bvr) <bvr@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%