- Repo for opensource odoo website theme (since V13.0)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
864 B

  1. from odoo import models
  2. class ThemeNano(models.AbstractModel):
  3. _inherit = 'theme.utils'
  4. def _theme_nano_post_copy(self, mod):
  5. self.disable_view('website.template_header_default')
  6. self.enable_view('website.template_header_sidebar')
  7. self.enable_view('website.no_autohide_menu')
  8. self.enable_header_off_canvas()
  9. self.enable_view('website.header_navbar_pills_style')
  10. self.disable_view('website.footer_custom')
  11. self.disable_view('website.template_footer_contact') # Old theme_treehouse dependency
  12. self.enable_view('website.template_footer_minimalist')
  13. self.enable_view('website.template_footer_slideout')
  14. self.enable_view('website.option_footer_scrolltop')
  15. self.enable_view('website.option_ripple_effect')
  16. self.disable_view('portal.footer_language_selector')