mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
2263661435
This is a request following the revert of the use of class names (concerning the python inheritance and typing project) closes odoo/design-themes#1024 Related: odoo/odoo#189889 Related: odoo/enterprise#75293 Signed-off-by: Raphael Collet <rco@odoo.com>
16 lines
686 B
Python
16 lines
686 B
Python
from odoo import models
|
|
|
|
|
|
class ThemeUtils(models.AbstractModel):
|
|
_inherit = 'theme.utils'
|
|
|
|
def _theme_common_post_copy(self, mod):
|
|
# Reset all default color when switching themes
|
|
self.disable_asset('theme_common.option_colors_02_variables')
|
|
self.disable_asset('theme_common.option_colors_03_variables')
|
|
self.disable_asset('theme_common.option_colors_04_variables')
|
|
self.disable_asset('theme_common.option_colors_05_variables')
|
|
self.disable_asset('theme_common.option_colors_06_variables')
|
|
self.disable_asset('theme_common.option_colors_07_variables')
|
|
self.disable_asset('theme_common.option_colors_08_variables')
|