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>
20 lines
626 B
Python
20 lines
626 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models
|
|
|
|
|
|
class ThemeUtils(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')
|