Files
design-themes/theme_clean/views/snippets/s_banner.xml
T
Benoit Socias 50f4986d42 [FIX] theme_*: upgrade image datasets
*: theme_anelusia, theme_artists, theme_avantgarde, theme_beauty,
   theme_buzzy, theme_clean, theme_kea, theme_kiddo, theme_monglia,
   theme_odoo_experts, theme_orchid, theme_real_estate,
   theme_test_custo, theme_vehicle, theme_zap

When `html_builder` was introduced, some data attributes related to
images have changed. Unfortunately, the attributes on static data were
not adapted accordingly. Because of this, both namings might appear in
this version.

This commit migrates images and background images attributes to use
the new attributes.

Dataset changes:
- copy `originalId` to `attachmentId`
- rename `originalMimetype` to `formatMimetype`

task-4367641

closes odoo/design-themes#1112

Related: odoo/odoo#218348
Related: odoo/enterprise#89768
Signed-off-by: Robin Lejeune (role) <role@odoo.com>
2025-07-14 11:58:22 +00:00

28 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_banner" inherit_id="website.s_banner">
<!-- Text -->
<xpath expr="//h1" position="replace">
<h1 class="display-3">Unleash your <strong><span class="o_text_highlight o_translate_inline o_text_highlight_circle_2 o_text_highlight_fill">potential</span>.</strong></h1>
</xpath>
<!-- Remove panels -->
<xpath expr="(//div[hasclass('o_grid_item_image')])[2]" position="replace"/>
<xpath expr="//div[hasclass('col-lg-5')]" position="replace"/>
<!-- Image Layout -->
<xpath expr="//div[hasclass('o_grid_item_image')]" position="attributes">
<attribute name="class" add="g-col-lg-6 col-lg-6" remove="o_grid_item g-col-lg-4 col-lg-4" separator=" "/>
<attribute name="style" add="grid-area: 1 / 7 / 11 / 13;" remove="grid-area: 1 / 8 / 11 / 12;" separator=";"/>
</xpath>
<!-- Img -->
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_banner_default_image_2/web_editor/composition/composition_oval_line.svg?c2=o-color-2</attribute>
<attribute name="data-shape">web_editor/composition/composition_oval_line</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">s_banner_2.svg</attribute>
<attribute name="data-shape-colors">;#34495E;;;</attribute>
</xpath>
</template>
</odoo>