19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:32:12 +01:00
parent 79f83631d5
commit 73afc09215
6267 changed files with 1534193 additions and 1130106 deletions

View file

@ -0,0 +1,28 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models
class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils'
category_style_templates = [
'website_sale.filmstrip_categories_bordered',
'website_sale.filmstrip_categories_tabs',
'website_sale.filmstrip_categories_pills',
'website_sale.filmstrip_categories_images',
'website_sale.filmstrip_categories_grid',
'website_sale.filmstrip_categories_large_images',
]
@api.model
def enable_view(self, xml_id):
"""Override of `theme.utils` to disable all category style templates when enabling one."""
if xml_id in self.category_style_templates:
for template in self.category_style_templates:
self.disable_view(template)
super().enable_view(xml_id)
@property
def _footer_templates(self):
return ['website_sale.template_footer_website_sale'] + super()._footer_templates