Files
design-themes/theme_nano/models/theme_nano.py
T
Cocographique c4287ba0d4 [IMP] theme_nano: update the theme
This commit updates the theme to improve the design with new colors, new
pictures and new snippet customizations.

task-2590182

X-original-commit: 036df33043
Part-of: odoo/design-themes#501
2021-09-24 11:09:49 +00:00

23 lines
871 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('website.ripple_effect_scss')
self.enable_asset('website.ripple_effect_js')
self.disable_view('portal.footer_language_selector')