[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 <qsm@odoo.com>
This commit is contained in:
Andrea Ulliana
2019-07-30 09:59:28 +00:00
committed by qsm-odoo
co-authored by qsm-odoo
parent 15bae2920c
commit 7deceae18c
30 changed files with 94 additions and 189 deletions
@@ -1,5 +1,6 @@
from odoo import models
class ThemeDefault(models.AbstractModel):
_inherit = 'theme.utils'