Files
design-themes/theme_kiddo/models/theme_kiddo.py
T

16 lines
478 B
Python
Raw Normal View History

2021-05-10 15:45:35 +02:00
from odoo import models
class ThemeKiddo(models.AbstractModel):
_inherit = 'theme.utils'
def _theme_kiddo_post_copy(self, mod):
self.disable_view('website.template_header_default')
self.enable_view('website.template_header_centered_logo')
self.disable_view('website.footer_custom')
self.enable_view('website.template_footer_minimalist')
# For compatibility
2021-05-10 15:46:42 +02:00
# self.enable_asset('theme_common.compatibility_saas_10_1')