cc9af0525f
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>
23 lines
855 B
Python
23 lines
855 B
Python
from odoo import models
|
|
|
|
|
|
class ThemeNano(models.AbstractModel):
|
|
_inherit = 'theme.utils'
|
|
|
|
def _theme_nano_post_copy(self, mod):
|
|
self.disable_view('website.template_header_default')
|
|
self.enable_view('website.template_header_centered_logo')
|
|
self.enable_header_off_canvas()
|
|
self.enable_view('website.header_navbar_pills_style')
|
|
|
|
self.disable_view('website.footer_custom')
|
|
self.disable_view('website.template_footer_contact') # Old theme_treehouse dependency
|
|
self.enable_view('website.template_footer_descriptive')
|
|
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')
|
|
|
|
self.disable_view('portal.footer_language_selector')
|