Files
design-themes/theme_odoo_experts/views/snippets/s_picture.xml
T
mega d9af188bb4 [FIX] theme_odoo_experts: remove unused configurator snippets
Currently, an error occurs while importing an 'Experts' theme template.

Steps to produce:

- Install the 'website' module.
- Build one website, try to switch its theme to the 'Experts' theme.

ValueError:
External ID not found in the system: website.configurator_s_picture

When switching a website theme to the 'Experts' theme, an error occurs
during importing their XML definition because their parent template does
not exist. To resolve this issue we can remove this template.

Indeed, that configurator snippet override was not needed anymore since
the 'Experts' theme was not using that specific snippet for their
configurator pages anymore. The error went unnoticed because on runbot
all themes are installed, and at least one of them was using that
specific snippet in a configurator page. This will be improved.

See [1] with the same kind of issue.

[1]: https://github.com/odoo/design-themes/commit/aed6d0585be5c646e1c3cade419c706dc154efaf

Sentry-5962594281

closes odoo/design-themes#990

X-original-commit: 6336bbddf6
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-10-16 18:26:10 +00:00

48 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_picture" inherit_id="website.s_picture">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc1 oe_img_bg" separator=" "/>
<attribute name="style">background-image: url('/web/image/website.s_picture_default_image_bg'); background-position: center;</attribute>
</xpath>
<!-- Filter -->
<xpath expr="//div[hasclass('o_container_small')]" position="before">
<div class="o_we_bg_filter bg-white-75"/>
</xpath>
<!-- Title -->
<xpath expr="//h2" position="replace">
<h1 style="text-align: center;">
<font style="background-image: linear-gradient(135deg, var(--o-color-5) 0%, var(--o-color-1) 100%);" class="text-gradient">
Unleash your</font><br/>
<font style="background-image: linear-gradient(135deg, var(--o-color-5) 0%, var(--o-color-1) 100%);" class="text-gradient">growth potential</font>
</h1>
</xpath>
<!-- First paragraph -->
<xpath expr="//p[1]" position="replace" mode="inner">
<br/>
Ask your questions and discuss your projects with our partners.<br/>
They are here to help you grow your business!
</xpath>
<!-- Add a button -->
<xpath expr="//p[1]" position="after">
<p style="text-align: center;">
<a t-att-href="cta_btn_href" class="btn btn-primary rounded-circle btn-lg"><t t-esc="cta_btn_text">Contact Us</t></a>
</p>
</xpath>
<!-- Image -->
<xpath expr="//div[hasclass('col-lg-12')]//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_picture_default_image/web_editor/devices/macbook_front.svg?c3=o-color-3</attribute>
<attribute name="data-shape">web_editor/devices/macbook_front</attribute>
<attribute name="data-original-mimetype">image/jpg</attribute>
<attribute name="data-file-name">s_picture.svg</attribute>
<attribute name="data-shape-colors">;;o-color-3;;</attribute>
<attribute name="class">img-fluid</attribute>
</xpath>
<!-- Remove figcaption -->
<xpath expr="//figcaption" position="replace"/>
</template>
</odoo>