mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[FIX] theme_*: enable footer/header template correctly
See [1], `enable_view()` is now in charge of disabling the already possibly existing template header (and/or footer). Disabling `website.template_header_default` was not enough, any of the other template could have been selected by the user before updating the theme. Note that when installing a theme the first time on a website, the error won't occur as `_reset_default_config()` will be called through `_theme_remove()`. [1]: https://github.com/odoo/odoo/pull/81181 Fixes https://github.com/odoo/upgrade/pull/3048 task-2593407 opw-2680866 opw-2685951 opw-2685124 opw-2679040 closes odoo/design-themes#536 Related: odoo/odoo#81181 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
This commit is contained in:
@@ -13,7 +13,3 @@ class ThemeCommon(models.AbstractModel):
|
||||
self.disable_asset('Option colors 06 variables SCSS')
|
||||
self.disable_asset('Option colors 07 variables SCSS')
|
||||
self.disable_asset('Option colors 08 variables SCSS')
|
||||
|
||||
# For compatibility
|
||||
# self.enable_asset('theme_common.compatibility_saas_11_4_variables')
|
||||
# self.enable_asset('theme_common.compatibility_saas_11_4')
|
||||
|
||||
Reference in New Issue
Block a user