df7b8a17cd61220101ee4b17b45ce7653d54b4df
When cloning a snippet, if it had some previews displayed, the previews may be cloned with it. This is not a good behavior because the clone is a new snippet so it should not have all the preview classes that were added when editing. Moreover, these previews could also cause bugs. To solve this, an idea could be to call the `cleanForSave` function of all its options before cloning the snippet. But the problem is that in some options, the `cleanForSave` function does more than simply clean the UI (as it was originally supposed to) and so it cannot be used for that purpose only. As a solution, this commit adds a new function called `cleanUI` whose exclusive purpose will be to clean the snippet UI. In the future, it will replace the `cleanForSave` function. task-3369695 Part-of: odoo/odoo#136683 Co-authored-by: qsm-odoo <qsm@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%