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

task-2545200

Part-of: odoo/design-themes#500
2021-09-24 04:52:25 +00:00

22 lines
856 B
Python

from odoo import models
class ThemeBistro(models.AbstractModel):
_inherit = 'theme.utils'
def _theme_bistro_post_copy(self, mod):
self.disable_view('website.template_header_default')
self.enable_view('website.template_header_vertical')
self.enable_view('website.template_header_default_align_right')
self.enable_view('website.template_header_hamburger_align_right')
self.enable_view('website.header_navbar_pills_style')
self.enable_header_off_canvas()
self.disable_view('website.footer_custom')
self.enable_view('website.template_footer_centered')
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')