Files
design-themes/theme_test_custo/data/pages.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

45 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="view_example" name="Example">
<t t-set="additional_title" t-valuef="Example"/>
<t t-call="website.layout">
<div id="wrap" class="oe_structure">
<!-- Image Shape -->
<section class="s_text_image pt80 pb80">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-6 pt16 pb16">
<h2>A Section Subtitle</h2>
<p>Write one or two paragraphs describing your product or services. To be successful your content needs to be useful to your readers.</p>
<p>Start with the customer - find out what they want and give it to them.</p>
<p><a href="#" class="btn btn-primary">Learn more</a></p>
</div>
<div class="col-lg-6 pt16 pb16">
<img src="/web_editor/image_shape/website.s_text_image_default_image/theme_test_custo/blob/01.svg" class="img img-fluid mx-auto" alt="" data-format-mimetype="image/webp" data-file-name="01.svg" data-shape="theme_test_custo/blob/01" data-shape-colors=";;;;"/>
</div>
</div>
</div>
</section>
<!-- Background Shape -->
<section class="s_text_block pt80 pb200" data-name="Text" data-oe-shape-data="{'shape': 'theme_test_custo/curves/01','flip':[]}">
<div class="o_we_shape o_theme_test_custo_curves_01"/>
<div class="s_allow_columns container">
<p>Great stories have a <b>personality</b>. Consider telling a great story that provides personality. Writing a story with personality for potential clients will assist with making a relationship connection. This shows up in small quirks like word choices or phrases. Write from your point of view, not from someone else's experience.</p>
</div>
</section>
</div>
</t>
</template>
<record id="page_example" model="theme.website.page">
<field name="view_id" ref="view_example"/>
<field name="is_published" eval="True"/>
<field name="url">/example</field>
</record>
</odoo>