Files
design-themes/theme_test_custo/models/theme_models.py
T
qsm-odoo 9eecd12db1 [IMP] *: remove useless utf-8 declaration
Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-21 16:34:53 +00:00

20 lines
631 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class TestThemeCustom(models.AbstractModel):
_inherit = 'theme.utils'
@property
def _header_templates(self):
return ['theme_test_custo.template_header_custom'] + super()._header_templates
@property
def _footer_templates(self):
return ['theme_test_custo.template_footer_custom'] + super()._footer_templates
def _theme_test_custo_post_copy(self, mod):
self.enable_view('theme_test_custo.template_header_custom')
self.enable_view('theme_test_custo.template_footer_custom')