190b1b1609f520c590fc22dca0c2c53ca5f63888
To reproduce the issue: - Website (edit mode) > Drop a snippet with icons (e.g. "Steps"). - Open mediaDialog to change an icon. - Select the same one (or click immediately on "ADD") > This will set an empty icon (without any "fa" specific class). The code on `MediaDialog` > `save()` adds CSS classes from the original icon to the new created one then removes the old 'fa' classes from it. (see `initialIconClasses`), as a consequence, the class will be deleted (not replaced) when the selected icon is the same as the old one. The goal of this commit is to fix this behaviour by simply closing the dialog if the selected icon remains the same as the old one. task-3210472 closes odoo/odoo#114345 X-original-commit: 0515e987b985622bc7b913dbbb37c0d0cd69eb4b Signed-off-by: Guillaume-gdi <gdi@odoo.com> Signed-off-by: Outagant Mehdi (mou) <mou@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%