[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>
This commit is contained in:
Benoit Socias
2025-07-08 16:20:48 +02:00
parent 0efd1c3bce
commit 50f4986d42
43 changed files with 94 additions and 94 deletions
@@ -5,7 +5,7 @@
<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_medium.svg</attribute>
<attribute name="data-shape">web_editor/geometric_round/geo_round_blob_medium</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">s_accordion_image_default_image.svg</attribute>
<attribute name="data-shape-colors">;;;;</attribute>
</xpath>
@@ -9,7 +9,7 @@
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_1/web_editor/solid/solid_blob_3.svg?c5=o-color-1</attribute>
<attribute name="data-shape">web_editor/composition/solid_blob_3</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">uiface_1.svg</attribute>
<attribute name="data-shape-colors">;;;;o-color-1</attribute>
</xpath>
@@ -20,7 +20,7 @@
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_2/web_editor/composition/composition_organic_line.svg?c1=o-color-5</attribute>
<attribute name="data-shape">web_editor/composition/composition_organic_line</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">uiface_1.svg</attribute>
<attribute name="data-shape-colors">o-color-5;;;;</attribute>
</xpath>
@@ -31,7 +31,7 @@
<xpath expr="(//img)[3]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_3/web_editor/solid/solid_blob_1.svg?c2=o-color-2</attribute>
<attribute name="data-shape">web_editor/solid/solid_blob_1</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">uiface_1.svg</attribute>
<attribute name="data-shape-colors">;o-color-2;;;</attribute>
</xpath>
@@ -42,7 +42,7 @@
<xpath expr="(//img)[4]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_4/web_editor/solid/solid_blob_4.svg?c5=o-color-2</attribute>
<attribute name="data-shape">web_editor/solid/solid_blob_4</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">uiface_1.svg</attribute>
<attribute name="data-shape-colors">;;;;o-color-2</attribute>
</xpath>
@@ -53,7 +53,7 @@
<xpath expr="(//img)[5]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_5/web_editor/composition/composition_oval_line.svg?c2=o-color-1</attribute>
<attribute name="data-shape">web_editor/composition/composition_oval_line</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">uiface_1.svg</attribute>
<attribute name="data-shape-colors">;o-color-1;;;</attribute>
</xpath>
@@ -64,7 +64,7 @@
<xpath expr="(//img)[6]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_6/web_editor/solid/solid_blob_3.svg?c5=o-color-5</attribute>
<attribute name="data-shape">web_editor/solid/solid_blob_3</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">uiface_1.svg</attribute>
<attribute name="data-shape-colors">;;;;o-color-5</attribute>
</xpath>
+1 -1
View File
@@ -36,7 +36,7 @@
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_image_text_default_image/web_editor/geometric_round/geo_round_square_2.svg</attribute>
<attribute name="data-shape">web_editor/geometric_round/geo_round_square_2</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">s_image_text.svg</attribute>
<attribute name="data-shape-colors">;;;;</attribute>
</xpath>
+1 -1
View File
@@ -24,7 +24,7 @@
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_text_image_default_image/web_editor/geometric_round/geo_round_square_1.svg</attribute>
<attribute name="data-shape">web_editor/geometric_round/geo_round_square_1</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">content_img_13.svg</attribute>
<attribute name="data-shape-colors">;;;;</attribute>
</xpath>
@@ -14,7 +14,7 @@
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_three_columns_default_image_1/web_editor/solid/solid_blob_1.svg?c2=o-color-1</attribute>
<attribute name="data-shape">web_editor/solid/solid_blob_1</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">s_three_columns_default_image_1.svg</attribute>
<attribute name="data-shape-colors">;o-color-1;;;</attribute>
</xpath>
@@ -51,7 +51,7 @@
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_three_columns_default_image_2/web_editor/composition/composition_organic_line.svg?c2=o-color-3</attribute>
<attribute name="data-shape">web_editor/composition/composition_organic_line</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">s_three_columns_default_image_2.svg</attribute>
<attribute name="data-shape-colors">;o-color-3;;;</attribute>
</xpath>
@@ -88,7 +88,7 @@
<xpath expr="(//img)[3]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_three_columns_default_image_3/web_editor/solid/solid_blob_3.svg?c5=o-color-2</attribute>
<attribute name="data-shape">web_editor/solid/solid_blob_3</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">s_three_columns_default_image_3.svg</attribute>
<attribute name="data-shape-colors">;;;;o-color-2</attribute>
</xpath>