mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[FIX] theme_*: fix the activation and deactivation of assets
Before this commit:
- The assets were not enabled or disabled when installing themes because
we searched for assets with the "key" field instead of the "name" field.
- The "Ripple Effect" was not correctly installed on several themes.
Because the variable and the assets were not both activated. Even if the
variable is not used, it is still necessary for the proper functioning
of the option (e.g. _computeWidgetState).
task-2686370
closes odoo/design-themes#546
X-original-commit: 77b2b97f3d
Related: odoo/odoo#81833
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -8,5 +8,5 @@ class ThemeRealEstate(models.AbstractModel):
|
||||
# For compatibility
|
||||
# self.enable_asset('theme_common.compatibility_saas_10_2')
|
||||
|
||||
self.enable_asset('website.ripple_effect_scss')
|
||||
self.enable_asset('website.ripple_effect_js')
|
||||
self.enable_asset("website.ripple_effect_scss")
|
||||
self.enable_asset("website.ripple_effect_js")
|
||||
|
||||
@@ -98,6 +98,7 @@ $o-website-values-palettes: (
|
||||
'btn-border-radius': 0px,
|
||||
'btn-border-radius-sm': 0px,
|
||||
'btn-border-radius-lg': 0px,
|
||||
'btn-ripple': true,
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user