[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:
Benjamin Vray
2021-12-09 15:00:40 +00:00
committed by qsm-odoo
parent bef7e13b00
commit 77b2b97f3d
16 changed files with 38 additions and 27 deletions
+3
View File
@@ -7,3 +7,6 @@ class ThemeYes(models.AbstractModel):
def _theme_yes_post_copy(self, mod):
self.disable_view('website.footer_custom')
self.enable_view('website.template_footer_descriptive')
self.enable_asset('Ripple effect SCSS')
self.enable_asset('Ripple effect JS')