e7635bc705ec37cbec7edb809734e39381822c51
In 16.0 and up, when toggling full-screen mode on the mailing editor the iframe content is not properly made scrollable. This is due to the toggle method being triggered 4 times which effectively cancels the effect. The reason for it being triggered 4 times is that the check that would prevent multiple event listeners from being set on the button compares an existing jquery object to a new one on the same element. As these are two different references to the same element they are still different objects and thus the listener will be added even if they reference the same iframe. The fix is simply to compare the html elements directly, if they exist. We also add the expected state of 'full screen' to the class toggle as it may avoid other inconsistencies from blindly toggling. task-3446768 closes odoo/odoo#130853 X-original-commit: 30f27563868af4b247c96c24135c1003aa191cef Signed-off-by: Warnon Aurélien (awa) <awa@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%