cc6cf9ef1377d7ebe1eade0ad4e9387cc3513cbd
*: test_website, website Steps to reproduce the bug: - Drag and drop a text-image snippet onto the page. - Add a shape to the image of the snippet by selecting the shape from the options. - Click on the "replace" button in the options of the image. - In the media dialog, navigate to the "icons" tab. - Choose an icon. - Inspect the HTML code of the icon in the DOM. - Bug: The 'data-shape' attribute with a value is still present. After this commit, when replacing media, the transfer of element attributes specific to "shape" elements only occurs towards an image and no longer towards other media (e.g. icons). We also prevent adding shapes to images that don't support it (e.g. SVG files). Before this commit, when replacing a .jpeg image that had a shape with a SVG image, the shape was not removed. This commit also adds tests to prevent these bugs from reappearing. task-3420533 closes odoo/odoo#129079 X-original-commit: 023b0b3124a7181fdf486df8c830bb16edd10aa6 Signed-off-by: Soukéina Bojabza (sobo) <sobo@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%