Files
design-themes/theme_bewise/models/theme_bewise.py
T
Benjamin Vray cc9af0525f [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#545

X-original-commit: 77b2b97f3d
Related: odoo/odoo#81829
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-12-23 11:15:44 +00:00

16 lines
445 B
Python

from odoo import models
class ThemeBewise(models.AbstractModel):
_inherit = 'theme.utils'
def _theme_bewise_post_copy(self, mod):
# For compatibility
# self.enable_asset('theme_common.compatibility_saas_10_2')
self.disable_view('website.footer_custom')
self.enable_view('website.template_footer_headline')
self.enable_asset('Ripple effect SCSS')
self.enable_asset('Ripple effect JS')