- 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

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