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

14 lines
481 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. # Reset all default color when switching themes
  6. for nb in range(2, 9):
  7. self.disable_view('theme_common.option_colors_%02d_variables' % nb)
  8. # For compatibility
  9. # self.enable_view('theme_common.compatibility-saas-11-4-variables')
  10. # self.enable_view('theme_common.compatibility-saas-11-4')