mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
77b2b97f3d
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>
18 lines
599 B
Python
18 lines
599 B
Python
from odoo import models
|
|
|
|
|
|
class ThemeTreehouse(models.AbstractModel):
|
|
_inherit = 'theme.utils'
|
|
|
|
def _theme_treehouse_post_copy(self, mod):
|
|
self.disable_view('website.header_visibility_standard')
|
|
self.enable_view('website.header_visibility_fixed')
|
|
|
|
self.disable_view('website.footer_custom')
|
|
self.enable_view('website.template_footer_contact')
|
|
self.enable_view('website.template_footer_slideout')
|
|
self.enable_view('website.option_footer_scrolltop')
|
|
|
|
self.enable_asset('Ripple effect SCSS')
|
|
self.enable_asset('Ripple effect JS')
|