- 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.

16 lines
549 B

5 years ago
  1. from odoo import models
  2. class ThemeCommon(models.AbstractModel):
  3. _inherit = 'theme.utils'
  4. def _theme_common_post_copy(self, mod):
  5. self.disable_view('website_theme_install.customize_modal')
  6. # Reset all default color when switching themes
  7. for nb in range(2, 9):
  8. self.disable_view('theme_common.option_colors_%02d_variables' % nb)
  9. # For compatibility
  10. # self.enable_view('theme_common.compatibility-saas-11-4-variables')
  11. # self.enable_view('theme_common.compatibility-saas-11-4')