*: theme_default Since [1] when installing a theme from the Website builder's Themes tab, if that theme used other snippets than the default ones in their configurator pages which were inherited, the import of the theme failed because the primary template was not generated before the import of the data files. This commit relies on each theme calling `_generate_primary_snippet_templates` before declaring templates that require them. In master, the early loading is removed altogether. See the changes in `theme_default` for the approach that was adopted through all themes. Steps to reproduce in master: - Start odoo-bin with `-i website`. - Edit home page. - Go to the "Theme" tab. - Click on "Switch Theme". - Pick "CORPORATE / Buzzy". => Fails because the `website.configurator_s_banner` template is not defined. [1]: https://github.com/odoo/odoo/commit/cfed4e391d11058b1b46417f0b630cdbc4070d7c task-3670496 closes odoo/odoo#148443 Related: odoo/design-themes#755 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
10 lines
270 B
XML
10 lines
270 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<!-- Generate primary snippet templates that are not predefined -->
|
|
<function model="ir.module.module" name="_generate_primary_snippet_templates">
|
|
<value eval="[ref('base.module_theme_default')]"/>
|
|
</function>
|
|
|
|
</odoo>
|