summaryrefslogtreecommitdiff
path: root/addons/website_theme_install
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website_theme_install')
-rw-r--r--addons/website_theme_install/models/theme_models.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/website_theme_install/models/theme_models.py b/addons/website_theme_install/models/theme_models.py
index 20a30c9713a..20105df25c1 100644
--- a/addons/website_theme_install/models/theme_models.py
+++ b/addons/website_theme_install/models/theme_models.py
@@ -147,6 +147,18 @@ class Theme(models.AbstractModel):
if not website: # remove optional website in master
website = self.env['website'].get_current_website()
+ # Reinitialize font customizations
+ self.env['web_editor.assets'].make_scss_customization(
+ '/website/static/src/scss/options/user_values.scss',
+ {
+ 'font-number': 'null',
+ 'headings-font-number': 'null',
+ 'navbar-font-number': 'null',
+ 'buttons-font-number': 'null',
+ }
+ )
+
+ # Call specific theme post copy
theme_post_copy = '_%s_post_copy' % mod.name
if hasattr(self, theme_post_copy):
_logger.info('Executing method %s' % theme_post_copy)