From 7deceae18c209c67f6cfbbe3f7704798bb02a42e Mon Sep 17 00:00:00 2001 From: Andrea Ulliana Date: Wed, 26 Jun 2019 12:28:13 +0000 Subject: [IMP] website, *: use "auto" widget for font customization * theme_bootswatch, theme_default, website_theme_install This commit makes use of the new 'auto' widget for font selection: instead of enabling a template which will enable a scss file which sets a font variable to a specific value... we directly allow to do a scss custo which sets that value. The code in charge of resetting font customizations on theme switching is also moved and refactored here in website (instead of being specific to each theme). Part of https://github.com/odoo/odoo/pull/33442 task-1974659 Co-authored-by: qsm-odoo --- addons/theme_default/models/theme_default.py | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/theme_default') diff --git a/addons/theme_default/models/theme_default.py b/addons/theme_default/models/theme_default.py index bcf9853bd9e..1fda54cb8ae 100644 --- a/addons/theme_default/models/theme_default.py +++ b/addons/theme_default/models/theme_default.py @@ -1,5 +1,6 @@ from odoo import models + class ThemeDefault(models.AbstractModel): _inherit = 'theme.utils' -- cgit v1.2.3