mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[FIX] theme_*: fix the activation and deactivation of assets
Before this commit: - The assets were not enabled or disabled when installing themes because we searched for assets with the "key" field instead of the "name" field. - The "Ripple Effect" was not correctly installed on several themes. Because the variable and the assets were not both activated. Even if the variable is not used, it is still necessary for the proper functioning of the option (e.g. _computeWidgetState). task-2686370 closes odoo/design-themes#539 Related: odoo/odoo#79783 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -6,13 +6,13 @@ class ThemeCommon(models.AbstractModel):
|
||||
|
||||
def _theme_common_post_copy(self, mod):
|
||||
# Reset all default color when switching themes
|
||||
self.disable_asset('theme_common.option_colors_02_variables')
|
||||
self.disable_asset('theme_common.option_colors_03_variables')
|
||||
self.disable_asset('theme_common.option_colors_04_variables')
|
||||
self.disable_asset('theme_common.option_colors_05_variables')
|
||||
self.disable_asset('theme_common.option_colors_06_variables')
|
||||
self.disable_asset('theme_common.option_colors_07_variables')
|
||||
self.disable_asset('theme_common.option_colors_08_variables')
|
||||
self.disable_asset('Option colors 02 variables SCSS')
|
||||
self.disable_asset('Option colors 03 variables SCSS')
|
||||
self.disable_asset('Option colors 04 variables SCSS')
|
||||
self.disable_asset('Option colors 05 variables SCSS')
|
||||
self.disable_asset('Option colors 06 variables SCSS')
|
||||
self.disable_asset('Option colors 07 variables SCSS')
|
||||
self.disable_asset('Option colors 08 variables SCSS')
|
||||
|
||||
# For compatibility
|
||||
# self.enable_asset('theme_common.compatibility_saas_11_4_variables')
|
||||
|
||||
Reference in New Issue
Block a user