[IMP] theme_anelusia, *: adapt s_accordion_image

*: theme_artists, theme_avantgarde, theme_aviato,theme_beauty,
theme_bewise, theme_bistro, theme_bookstore, theme_buzzy, theme_clean,
theme_cobalt, theme_enark, theme_graphene, theme_kea, theme_kiddo,
theme_monglia, theme_nano, theme_notes, theme_odoo_experts,
theme_orchid, theme_paptic, theme_real_estate, theme_treehouse,
theme_vehicle, theme_yes, theme_zap, theme_loftspace

This commit adapts customizations for `s_accordion_image`, added in
https://github.com/odoo/odoo/pull/176768

task-4094398
Part of task-4077427

closes odoo/design-themes#870

Related: odoo/odoo#176768
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
This commit is contained in:
Brieuc-brd
2024-08-14 13:39:35 +02:00
parent a63e21e41a
commit 30e8f21e66
45 changed files with 263 additions and 0 deletions
+1
View File
@@ -32,6 +32,7 @@
'views/snippets/s_quotes_carousel.xml',
'views/snippets/s_unveil.xml',
'views/snippets/s_numbers_showcase.xml',
'views/snippets/s_accordion_image.xml',
'views/new_page_template.xml',
],
'images': [
+5
View File
@@ -237,5 +237,10 @@
<field name="name">website.s_cta_box_default_image</field>
<field name="url">/theme_anelusia/static/src/img/snippets/s_cta_box_default_image.jpg</field>
</record>
<record id="s_accordion_image_default_image" model="theme.ir.attachment">
<field name="key">website.s_accordion_image_default_image</field>
<field name="name">website.s_accordion_image_default_image</field>
<field name="url">/theme_anelusia/static/src/img/snippets/s_picture.jpg</field>
</record>
</odoo>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_accordion_image" inherit_id="website.s_accordion_image">
<xpath expr="//section" position="attributes">
<attribute name="class" remove="o_cc o_cc2" separator=" "/>
</xpath>
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_accordion_image_default_image/web_editor/solid/solid_square_1.svg?c2=o-color-1</attribute>
<attribute name="data-shape">web_editor/solid/solid_square_1</attribute>
<attribute name="data-original-mimetype">image/jpeg</attribute>
<attribute name="data-file-name">s_accordion_image_default_image.svg</attribute>
<attribute name="data-shape-colors">;o-color-1;;;</attribute>
</xpath>
</template>
</odoo>