bed3cd54a5c7baeab173129036246bef543eef94
Before this commit, both the theme install* and upgrade flow would end up calling the theme's `_post_copy()`. The `_post_copy()` is in charge of enabling or disabling some website options as ripple effect, language in footer, changing header template etc. From there, the user could later fine-tune its website and change those options, altering what the theme chose during the install. We don't want a later theme update to reapply the theme pre-selected options and erase/revert the changes the user made after the theme install. This commit is then removing the call to `_post_copy()` on theme update. Note that the `_post_copy()` is encapsulating the theme python code which is supposed to only do some visual stuff like enabling a view or a theme option. Also, note that calling `_post_copy()` in a theme update will not only re-enable/disable some views but that will create a de-sync between the activated view and the scss value. Indeed, for instance, enabling the hamburger menu view is not enough, it should also be coming with a scss value change. The mismatch between the template and the scss will lead to some visual glitches / ugly result. Calling `_post_copy()` when applying the theme for the first time through the UI (the only way possible) will not create that de-sync issue as that flow is resetting the scss value: `_reset_default_config()` will be called through `_theme_remove()`. * `theme install` does not refer to the module install but the moment the theme is applied on a website, which is not the same as themes modules behaves in their own manner. When a theme is installed on the DB, it does nothing except creating fake records in "standalone" tables, which will then be converted to real records and applied on the selected website. opw-2824045 closes odoo/odoo#93109 X-original-commit: 14387f36438b731753e2e7169f54865b123cdcfa Related: odoo/design-themes#571 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com> Signed-off-by: Romain Derie (rde) <rde@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%