mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[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:
@@ -28,6 +28,7 @@
|
||||
'views/snippets/s_product_catalog.xml',
|
||||
'views/snippets/s_unveil.xml',
|
||||
'views/snippets/s_numbers_showcase.xml',
|
||||
'views/snippets/s_accordion_image.xml',
|
||||
'views/new_page_template.xml',
|
||||
],
|
||||
'images': [
|
||||
|
||||
@@ -245,5 +245,10 @@ Check in theme_loftspace's primary_variables.scss and theme.scss -->
|
||||
<field name="name">website.library_image_17</field>
|
||||
<field name="url">/theme_beauty/static/src/img/snippets/s_newsletter.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_beauty/static/src/img/snippets/s_popup.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" add="o_cc4" remove="o_cc2" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="//img" position="attributes">
|
||||
<attribute name="src">/web_editor/image_shape/website.s_accordion_image_default_image/web_editor/geometric_round/geo_round_blob_soft.svg</attribute>
|
||||
<attribute name="data-shape">web_editor/geometric_round/geo_round_blob_soft</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">;;;;</attribute>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user