* 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>
9 lines
210 B
Python
9 lines
210 B
Python
from odoo import models
|
|
|
|
|
|
class ThemeDefault(models.AbstractModel):
|
|
_inherit = 'theme.utils'
|
|
|
|
def _theme_default_post_copy(self, mod):
|
|
self.disable_view('website_theme_install.customize_modal')
|