mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
aed6d0585b
When shapes were extracted to configurator snippets in [1], some
configurator-specific snippets were created that do not appear on pages
of the specific theme.
Because in [2] the call to `_generate_primary_snippet_templates` is done
on a full list of themes instead of only the installed ones, the problem
was not noticed: if any theme defines a block, it's website-side
configurator-specific template is generated.
This is not the case during an upgrade: the templates are generated only
for the installed themes. Because of this some "useless" configurator
templates trigger an error when importing their XML definition because
their parent template does not exist.
This commit fixes this by removing those templates.
[1]: https://github.com/odoo/design-themes/commit/d206c119720d557c11320ebb3d7339890b8f9efa
[2]: https://github.com/odoo/odoo/commit/928eeca714a161f6bc03343e4dc8af9b050b9841#diff-f49a1e9eda23df9f1d48121ba376a5fabafe70ea18b29d4eab23d737e5d4eeb6R446
closes odoo/design-themes#752
X-original-commit: 7b27828755
Related: odoo/odoo#144666
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
33 lines
1.1 KiB
XML
33 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="s_cover" inherit_id="website.s_cover">
|
|
<!-- Section -->
|
|
<xpath expr="//section" position="attributes">
|
|
<attribute name="class" add="o_full_screen_height" separator=" "/>
|
|
</xpath>
|
|
<!-- Filter -->
|
|
<xpath expr="//div[hasclass('o_we_bg_filter')]" position="replace">
|
|
<div class="o_we_bg_filter bg-black-50"/>
|
|
</xpath>
|
|
<!-- Container -->
|
|
<xpath expr="//div[hasclass('container')]" position="attributes">
|
|
<attribute name="class" add="o_container_small" remove="container" separator=" "/>
|
|
</xpath>
|
|
<!-- Title -->
|
|
<xpath expr="//h1" position="replace" mode="inner">
|
|
We care <br/>about results
|
|
</xpath>
|
|
<!-- Paragraph -->
|
|
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
|
|
<br/>
|
|
Guided by expertise gained over 20 years of achieving success for clients, we practice with passion and strategic focus on the future.
|
|
</xpath>
|
|
<!-- Button -->
|
|
<xpath expr="//t[@t-esc='cta_btn_text']" position="replace" mode="inner">
|
|
Discover More
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|