f5c906770b3b33275fc191acaea76632ab49cecc
Commit [1] cloned the contents of the edited e-mail to a temporary iframe before inlining its HTML (`convert_inline`). However, the assets were not properly loaded in the iframe, which prevented the inliner from doing its job properly, in particular with fonts (e.g., Font Awesome icons were not loaded so they couldn't be converted to images). This uses the `srcdoc` attribute of the iframe instead of replacing its HTML element with a clone of the edited e-mail's, making sure to remove all scripts from the iframe to prevent them from running, and disabling script execution in it as a safeguard. Steps to reproduce an example bug fixed by this commit: 1. Start a new e-mail with the "empty" template 2. Add a "Left Logo" snippet 3. Save -> The Font Awesome icons are missing from the saved e-mail, the font of the text is wrong, and the image is stretched out. [1]: https://github.com/odoo/odoo/commit/582567fa13cef3e5fee00a17ff52c623ba5422f2 closes odoo/odoo#113687 X-original-commit: 79dc6384329b1e8bd2338160d62028ac0c1cdce4 Signed-off-by: David Monjoie (dmo) <dmo@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%