132 Commits

Author SHA1 Message Date
Benjamin Vray 69e951d47e [IMP] test_themes, theme_*: adapt themes for new parallax structure
This commit adapts the themes to the new Parallax effect structure.
We now wrap the parallax element in another element with
"overflow: hidden" to avoid setting "overflow: hidden" on sections.
That was causing elements like the dropdown of the search bar to be cut
off and not fully visible.

task-4926420

closes odoo/design-themes#1114

Related: odoo/odoo#218296
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-10-06 12:57:36 +00:00
Antoine (anso) 991dfa574c [FIX] theme_*: adapt snippets after secondary color fixes
*: anelusia, artists, avantgarde, aviato, beauty, bewise, bistro,
bookstore, buzzy, clean, cobalt, enark, kea, kiddo, loftspace, monglia,
nano, notes, odoo_experts, orchid, paptic, real_estate, treehouse,
vehicle, yes, zap

This commit adapts multiple snippets after they were changed in the
community counterpart of this PR.

task-5072830

closes odoo/design-themes#1148

X-original-commit: 233a091b09
Related: odoo/odoo#227101
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Antoine Sougné (anso) <anso@odoo.com>
2025-09-16 11:38:06 +00:00
Antoine (anso) 70b64705ac [FIX] theme_*: restore themes dark footers
*: anelusia, artists, avantgarde, aviato, beauty, bistro, bookstore,
   buzzy, cobalt, enark, graphene, kiddo, loftspace, monglia,
   odoo_experts, orchid, real_estate, treehouse, yes

The footer color was switched from o_cc5 to o_cc2 in commit [1].

Several themes relied on the footer being dark by default without
having to override o_cc5. Since the default footer is now light, those
themes were updated to explicitly use a dark preset.

[1]: https://github.com/odoo/odoo/commit/62cad846a5c8adf52fc0450bc3f5cfd0492d0622

task-5074919

closes odoo/design-themes#1146

X-original-commit: 1a44024129
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Antoine Sougné (anso) <anso@odoo.com>
2025-09-12 18:47:16 +00:00
Augustin (duau) 4bd388f771 [REF] * : adapt shape mapping to html_builder
*: theme_anelusia, theme_artists, theme_avantgarde, theme_aviato,
theme_beauty, theme_bistro, theme_bookstore, theme_buzzy, theme_clean,
theme_cobalt, theme_graphene, theme_kea, theme_kiddo, theme_loftspace,
theme_monglia, theme_nano, theme_notes, theme_odoo_experts,
theme_orchid, theme_paptic, theme_real_estate, theme_treehouse,
theme_vehicle, theme_yes, theme_zap

closes odoo/design-themes#1129

Related: odoo/odoo#222471
Related: odoo/enterprise#92087
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2025-09-09 09:00:01 +00:00
Augustin (duau) 4763f66fbc [REF] *: change reference from web_editor image_shape to html_builder
*: theme_anelusia, theme_artists, theme_avantgarde, theme_beauty,
theme_bistro, theme_buzzy, theme_clean, theme_graphene, theme_kea,
theme_kiddo, theme_monglia, theme_nano, theme_odoo_experts,
theme_orchid, theme_real_estate, theme_test_custo, theme_treehouse,
theme_vehicle, theme_zap

Part-of: odoo/design-themes#1129
Related: odoo/odoo#222471
Related: odoo/enterprise#92087
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2025-09-09 09:00:01 +00:00
Augustin (duau) 197417c65a [REF] theme_*: change web_editor image_shape route to html_editor route
*: theme_anelusia, theme_artists, theme_avantgarde, theme_beauty,
theme_bistro, theme_buzzy, theme_clean, theme_graphene, theme_kea,
theme_kiddo, theme_monglia, theme_nano, theme_odoo_experts,
theme_orchid, theme_real_estate, theme_test_custo, theme_treehouse,
theme_vehicle, theme_zap

Part-of: odoo/design-themes#1129
Related: odoo/odoo#222471
Related: odoo/enterprise#92087
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2025-09-09 09:00:00 +00:00
Augustin (duau) a71f0184b8 [REF] theme_*: change web_editor shape route to html_editor route
*: test_themes, theme_anelusia, 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_loftspace, theme_monglia, theme_nano,
theme_notes, theme_odoo_experts, theme_orchid, theme_paptic,
theme_real_estate, theme_treehouse, theme_vehicle, theme_yes, theme_zap

Part-of: odoo/design-themes#1129
Related: odoo/odoo#222471
Related: odoo/enterprise#92087
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2025-09-09 09:00:00 +00:00
Augustin (duau) 2ff08528c7 [REF] *: change reference from web_editor shape to html_builder
*: test_themes, theme_anelusia, 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_loftspace, theme_monglia, theme_nano,
theme_notes, theme_odoo_experts, theme_orchid, theme_paptic,
theme_real_estate, theme_treehouse, theme_vehicle, theme_yes, theme_zap

Part-of: odoo/design-themes#1129
Related: odoo/odoo#222471
Related: odoo/enterprise#92087
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2025-09-09 09:00:00 +00:00
Antoine (anso) 985d630547 [IMP] theme_buzzy: add and customize wsale categories snippet
This commit includes and customize the
`website_sale.s_dynamic_snippet_category_list` snippet in the default
snippet sequence of the theme's homepage.

task-5009694

Part-of: odoo/design-themes#1137
Related: odoo/odoo#225310
Signed-off-by: Antoine Sougné (anso) <anso@odoo.com>
2025-09-09 07:11:26 +00:00
Chrysanthe (chgo) 376ab972ea [IMP] theme_*: improve SEO by correcting heading tag hierarchy
* anelusia, artists, avantgarde, aviato, beauty, bewise, bistro,
bookstore, buzzy, clean, cobalt, enark, graphene, kea, kiddo, loftspace,
monglia, nano, notes, odoo_experts, orchid, paptic, real estate,
treehouse, vehicle, yes, zap

This commit adapts all the `xpath` expressions inside design themes to
target the new heading tags that were changed within the snippet files.

task-4349019

closes odoo/design-themes#1043

Related: odoo/odoo#191300
Related: odoo/enterprise#92978
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-09-08 18:27:03 +00:00
Augustin (duau) fee5fc75fe [FIX] *: fix duplicate palette crashing render in theme tab
*: theme_anelusia, theme_avantgarde, theme_bookstore, theme_buzzy,
   theme_real_estate, theme_treehouse

Since website refactor [1], a silent error would occur while rendering
the theme tab, because of the use of `t-foreach`, leading to nothing
being displayed depending of the theme.

This was caused by a duplicate key in the
`$o-selected-color-palettes-names` scss variable, added by some theme,
which would make the `t-foreach` crash in `website.ThemeColorsOption`.

Steps to reproduce:
- Create a website using any of the above themes, through the wizard
- Enter edit mode
- Click on theme tab
- Nothing is rendered

[1]: https://github.com/odoo/odoo/commit/9fe45e2b7ddbbfd0445ffe25a859e67a316d02b2

opw-5020952
opw-5040694

closes odoo/design-themes#1141

X-original-commit: d53ae16a85
Related: odoo/odoo#225809
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Augustin Dupin (duau) <duau@odoo.com>
2025-09-07 02:16:05 +00:00
Xavier Luyckx (xlu) d9a15eaee5 [FIX] theme_*: adapt xpath for s_timeline(_images, _list) changes
*: theme_artists, theme_buzzy, theme_nano

Before, the timeline (*) dots were invisible when using preset 4
because they shared the same color as the background (`text-o-color-1`
on `o-color-1` background).

The fix in the relative PR implements a solution that ensures dots are
always visible by using button primary colors for all presets.

Thus, this commit adapts xpath to ensure compatibility with the changes.

task-4922302

closes odoo/design-themes#1126

Related: odoo/odoo#221505
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-08-19 15:49:22 +00:00
Alessandro Lupo dcbe2287af [FIX] theme_anelusia, *: 'web_editor' to 'html_builder' in shapeId
* theme_artists, theme_avantgarde, theme_beauty, theme_bistro, theme_buzzy,
    theme_clean, theme_graphene, theme_kea, theme_kiddo, theme_monglia,
    theme_nano, theme_odoo_experts, theme_orchid, theme_real_estate,
    theme_treehouse, theme_vehicle, theme_zap

**Problem**
Some snippets contain shapes whose ID starts with `web_editor` instead of
`html_builder`. These IDs are not listed in imageShapeDefinitions [1], and
this generates a traceback when trying to apply shape tranformations.

**How to reproduce**
1. Insert the snippet `s_images_constellation`
2. Click on the bottom left image having the "Double Pill" shape
3. Click on any "Transform" button under the "Shape" row in the "Image" section
4. Problem: traceback pops up

**Solution**
This commit replaces `web_editor` with `html_builder` in themes.
See also the changes made to snippets [2] and the migration script [3].

[1] addons/html_builder/static/src/plugins/image/image_shapes_definition.js
[2] https://github.com/odoo/odoo/pull/218837
[3] https://github.com/odoo/upgrade/pull/8076

task-4367641

closes odoo/design-themes#1117

Related: odoo/odoo#218837
Related: odoo/enterprise#90482
Related: odoo/upgrade#8076
Signed-off-by: Robin Lejeune (role) <role@odoo.com>
2025-07-19 11:57:29 +00:00
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
Serge Bayet (seba) e78bd3fbbb [REF] website: convert default images to WebP format
This commit switches the default image format from JPEG to WebP for all
design-themes images. WebP offers superior compression compared to JPEG,
resulting in smaller file sizes and faster website loading times.
Additionally, this change helps avoid warnings from performance tools
regarding image optimization.

See also: odoo/odoo#168862

task-3167548

closes odoo/design-themes#805

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-07-01 06:52:49 +00:00
Serge Bayet (seba) 160c21c088 [IMP] theme_buzzy, *: fix header hierarchy for better SEO
*: theme_nano, theme_real_estate

Refactored design-themes modules templates to use a consistent and
semantically correct heading structure (h1, h2 etc.). This improves SEO.

task-4680875

closes odoo/design-themes#1105

Related: odoo/odoo#205011
Related: odoo/enterprise#88051
Related: odoo/upgrade#7927
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
2025-06-25 16:10:10 +00:00
qsm-odoo 019caa4905 [FIX] *: fix "s_features" snippet overrides for new page templates
*: theme_artists, theme_buzzy, theme_loftspace, theme_yes

The community "s_features" snippet for a specific new page template was
broken (missing all its classes). This commit adapts the related
themes overrides following the fix of that snippet (note that these
overrides were also broken by themselves).

Related to task-4373543

Part-of: odoo/design-themes#1054
Related: odoo/odoo#189299
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-04-23 22:04:44 +00:00
Brieuc-brd 8eaa7e913b [IMP] theme_artists, *: adapt s_tabs_images
*: theme_bistro, theme_buzzy, theme_nano, theme_notes, theme_treehouse,
theme_zap

This commit adapts customizations for `s_tabs_images`.

task-4094407
Part of task-4077427

closes odoo/design-themes#1001

Related: odoo/odoo#185642
Related: odoo/upgrade#6691
Signed-off-by: Serge Bayet (seba) <seba@odoo.com>
2025-04-01 21:12:07 +00:00
Brieuc-brd f1215976c0 [IMP] theme_anelusia, *: adapts background shapes
*: theme_artists, 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_loftspace,
theme_monglia, theme_nano, theme_notes, theme_odoo_experts,
theme_orchid, theme_paptic, theme_real_estate, theme_treehouse,
theme_vehicle, theme_zap

This commit adapts background shapes in theme customizations where
shapes have been removed, changed or added during the refactoring of
background shapes.

task-4372655

closes odoo/design-themes#1051

Related: odoo/odoo#190682
Signed-off-by: Serge Bayet (seba) <seba@odoo.com>
2025-03-29 18:44:25 +00:00
Chrysanthe (chgo) f4539c4d3c [IMP] theme_*: adapt s_numbers_framed across design themes
*: artists, avantgarde, aviato, beauty, bewise, bistro, bookstore, buzzy,
clean, cobalt, enark, graphene, kea, kiddo, loftspace, monglia, nano,
botes, odoo_experts, orchid, paptic, real_estate, treehouse, vehicle,
yes,zap.

This commit adapts the design of the `s_numbers_framed` occurrences
across design themes.

task-4094384
Part of task-4077427

closes odoo/design-themes#1000

Related: odoo/odoo#175700
Signed-off-by: Christopher du Toit (chto) <chto@odoo.com>
2025-03-05 14:20:39 +00:00
Louis Wicket (wil) 0a08e9dfcd [I18N] export source terms
closes odoo/design-themes#1050

X-original-commit: 01c0f7d894
Related: odoo/odoo#198989
Related: odoo/enterprise#80027
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2025-02-24 18:31:04 +00:00
Julien Castiaux c26bfbab17 [IMP] all: add missing author in all manifests
The author field was made required by the previous commit, this commit
add the missing field in all manifests.

The upgrade-code script `18.2-01-manifest-author.py` was used. See
related community branch (same commit title).

task-4485983

closes odoo/design-themes#1044

Related: odoo/odoo#196408
Related: odoo/enterprise#78513
Related: odoo/documentation#11956
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2025-02-24 10:35:07 +00:00
Brieuc-brd 6ea1b24e5e [IMP] theme_anelusia, *: adapt s_carousel_cards
*: 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,
test_themes

This commit adapts customizations for `s_carousel_cards`.

task-4094405
Part of task-4077427

closes odoo/design-themes#986

Related: odoo/odoo#183519
Related: odoo/upgrade#6692
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-02-20 04:43:52 +00:00
Chrysanthe (chgo) 3cc5d6b655 [FIX] theme_*: fix s_big_number wrong implementation
*: anelusia, artists, avantgarde, aviato, beauty, bewise, bistro,
bookstore, buzzy, clean, cobalt, enark, graphene, kea, kiddo, loftspace,
monglia, nano, notes, odoo_experts, orchid, paptic, real_estate,
treehouse, vehicle, yes, zap

This commit aims to fix a wrong implementation of gradients on the
`s_big_number` snippet within the context of the web editor.

Prior to this commit, the `s_big_number` snippet was using a gradient
composed of the right color, but being declared as `RGB` values.

While this is working as expected and looking like it uses the right
`--o-color-*`, it's indeed working with the specific color applied in
first place. If a user changes the color palette of the website, the
snippet will look terrible as it doesn't adapt to the new palette.

This commit fixes the issue by using the right implementation with CSS
variables.

It also reviews a wrong structure using `<div>` while it should use the
right html tag.

task-4202371

closes odoo/design-themes#930

Related: odoo/odoo#180983
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
2025-02-17 14:02:25 +00:00
Chrysanthe (chgo) b93e7407e5 [IMP] theme_*: adapt s_split_intro snippet
*: anelusia, artists, avantgarde, aviato, beauty, bewise, bistro,
bookstore, buzzy, cobalt, enark, kiddo, loftspace, monglia, nano, notes,
odoo_experts, orchid, real_estate, treehouse, vehicle, yes, zap.

This commit reviews the occurrences of `s_split_intro` snippet across
design themes.

task-4077616
part of task-4077427

closes odoo/design-themes#876

Related: odoo/odoo#175321
Signed-off-by: Christopher du Toit (chto) <chto@odoo.com>
2025-02-17 11:58:30 +00:00
mano-odoo bd4b876b57 [IMP] theme_*: adapt s_timeline_images to themes
theme_anelusia, theme_artists, theme_buzzy, theme_nano, theme_yes

This commit adapt the `s_timeline_images` snippet to the themes.

task-4105285
Part of task-4077427

closes odoo/design-themes#995

Related: odoo/odoo#184760
Signed-off-by: Ivan Klapka (ivkl) <ivkl@odoo.com>
2025-02-14 17:53:19 +00:00
Xavier Luyckx (xlu) e564c44dfc [IMP] theme_*: adapt themes with new s_company_team_card snippet
*: avantgarde, aviato, beauty, bewise, bistro,bookstore, buzzy, clean,
cobalt, kea, kiddo, monglia, nano, notes, Orchid, paptic, real_estate,
vehicle, yes, zap

This commit adapts the design of `s_company_team_card` for multiple
themes, based on the new Odoo 18 snippet redesign.

task-4149441

closes odoo/design-themes#902

Part-of: task-4077427
Related: odoo/odoo#179843
Signed-off-by: Christopher du Toit (chto) <chto@odoo.com>
2025-02-13 14:53:46 +00:00
Chrysanthe (chgo) 245ccafd24 [IMP] theme_*: review s_numbers_boxed snippet occurrences
*: anelusia, artists, avantgarde, aviato, beauty, bewise, bistro,
bookstore, buzzy, clean, cobalt, enark, kea, kiddo, loftspace, monglia,
nano, notes, odoo_experts, orchid, paptic, real_estate, treehouse,
vehicle, yes, zap

This commit reviews the occurrences of the `s_numbers_boxed` snippet
within themes

task-4094382
Part of task-4077427

closes odoo/design-themes#979

Related: odoo/odoo#175701
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
2025-02-13 10:21:46 +00:00
Gorash 89ef56bda9 [IMP] orm/all: Make _name or _inherit mandatory
This is a request following the revert of the use of class names
(concerning the python inheritance and typing project)

closes odoo/design-themes#1040

X-original-commit: 2263661435
Related: odoo/odoo#191963
Related: odoo/enterprise#76269
Signed-off-by: Raphael Collet <rco@odoo.com>
2024-12-28 08:04:36 +00:00
qsm-odoo f3d88b9516 [IMP] theme_*: explode masonry snippet
See community commit for details

Note: this also fixes avantgarde svg/screenshot at the same time: we
remove the s_masonry_block but add the missing carousel.

(image contribution by MANO)

closes odoo/design-themes#1020

Related: odoo/odoo#183755
Related: odoo/upgrade#6642
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: mano-odoo <mano@odoo.com>
2024-12-17 15:13:01 +00:00
Brieuc-brd 54c7977709 [IMP] theme_artists, *: adapt background shapes
*: 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_notes, theme_odoo_experts, theme_orchid, theme_real_estate,
theme_treehouse, theme_vehicle, theme_yes, theme_zap

This commit adapts background shapes in theme customizations where
shapes have been removed or added during the introduction of
"Connections" shapes.

task-4251568

closes odoo/design-themes#996

Related: odoo/odoo#185342
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
2024-12-05 16:26:39 +00:00
Brieuc-brd 1a5ffab8d1 [IMP] theme_anelusia, *: adapt s_website_form_overlay
*: 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

This commit adapts customizations for `s_website_form_overlay`.

task-4138795
Part of task-4077427

closes odoo/design-themes#989

Related: odoo/odoo#183568
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-11-22 13:48:08 +00:00
Serge Bayet (seba) 3adf9d6420 [FIX] *: remove auto text selection on click
*: theme_buzzy, theme_clean, theme_common, theme_graphene, theme_kiddo,
   theme_odoo_experts, theme_test_custo

See community commit for details.

task-4147162

closes odoo/design-themes#994

Related: odoo/odoo#184570
Related: odoo/enterprise#72590
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-10-26 01:47:10 +00:00
Gorash 377616168b [IMP] *: adapt model class names to correspond to model names (apply script)
closes odoo/design-themes#988

Related: odoo/odoo#178200
Related: odoo/enterprise#69762
Related: odoo/documentation#11115
Related: odoo/upgrade#6577
Related: odoo/upgrade-util#143
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2024-10-15 09:33:06 +00:00
Louis Wicket (wil) ec655423be [I18N] export source terms
closes odoo/design-themes#981

X-original-commit: 94894e1a51
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2024-10-08 09:22:11 +00:00
Brieuc-brd 2f2aec94ef [FIX] theme_anelusia, *: adapt mismatched theme images
*: theme_bistro, theme_buzzy, theme_clean, theme_kea, theme_kiddo,
theme_notes, theme_real_estate, theme_vehicle, theme_avantgarde

Prior to this change, some themes were still using default images for
certain snippets.
These images didn't correspond to the subject of the chosen theme.

This commit replaces these images with more relevant ones.

task-4215915

closes odoo/design-themes#975

X-original-commit: 40ac649c88
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-10-01 09:39:55 +00:00
Benoit Socias 8f94c7e19f [IMP] test_themes, theme_*: ensure that grid options are properly set
This commit adds a test that highlights mismatches in grid-related
options (classes, grid-area style...).

It also fixes the remaining issues in themes about it.

task-4213996

closes odoo/design-themes#971

X-original-commit: cf227cd139
Related: odoo/odoo#182039
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-30 16:38:13 +00:00
Benjamin Vray cc9f79601f [FIX] theme_*: rename the dragNDrop function to insertSnippet
This commit replaces the "dragNDrop" function used in theme tours with
"insertSnippet" because the function name has changed. Now, users no
longer need to drag and drop categories onto the page from the snippet
menu. Instead, they now need to click on them.

task-4072655

closes odoo/design-themes#970

X-original-commit: dddd841c9b
Related: odoo/odoo#182031
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-30 08:35:50 +00:00
Mehdi Outagant (MOU) 662c399420 [IMP] theme_*: use minimal format for highlighted text content
*: buzzy, clean, notes

A highlighted text has the following structure:

```
<span class="o_text_highlight o_text_highlight_[highlightId]"
    style="--text-highlight-width: ...; --text-highlight-color: ...;">
    <span class="o_text_highlight_item">
        text content (line 1) ...
        <svg.../>
    </span>
    [<br/>]
    <span class="o_text_highlight_item">
        text content (line 2) ...
        <svg.../>
    </span>
    ...
</span>
```

Which is saved in a minimal format that allows the JS code to rebuild
the SVGs when it's needed:

```
<span class="o_text_highlight o_text_highlight_[highlightId]"
    style="--text-highlight-width: ...; --text-highlight-color: ...;">
    text content ...
</span>
```

The goal of this commit is to use the simplified format for theme
customizations and adapt the code from the "Snippets Preview" and the
"New Page Templates Preview" to be able to build the highlights using
this format when provided in XML.

task-4215788

closes odoo/design-themes#964

X-original-commit: ab8f6a8fce
Related: odoo/odoo#182003
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-29 19:51:44 +00:00
Benoit Socias d28cc926c2 [FIX] theme_*: fix duplicate inline styles
*: avantgarde, beauty, bistro, buzzy, clean, cobalt, graphene, kea, yes

This commit adapts the style attribute's add/remove operations in order
to avoid ending up with the same property defined several times.

task-4206845

X-original-commit: 266b35a31e
Part-of: odoo/design-themes#946
Related: odoo/odoo#181550
Signed-off-by: Alice Gaudon (agau) <agau@odoo.com>
2024-09-26 18:39:42 +00:00
Benoit Socias efbfee9161 [FIX] theme_*: fix used separators in class and style updates
*: anelusia, artists, avantgarde, aviato, bistro, bookstore, buzzy,
   clean, enark, graphene, kea, kiddo, monglia, nano, notes,
   odoo_experts, paptic, real_estate, treehouse, vehicle, yes, zap

This commit fixes the wrong separators used when updating class and
style attributes.

task-4206845

X-original-commit: 38a02a269a
Part-of: odoo/design-themes#946
Related: odoo/odoo#181550
Signed-off-by: Alice Gaudon (agau) <agau@odoo.com>
2024-09-26 18:39:42 +00:00
Brieuc-brd 73d4c9ae26 [IMP] theme_buzzy: revamp the theme
task-4178061
Part of task-4177975

closes odoo/design-themes#907

Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2024-09-25 11:12:57 +00:00
Chrysanthe (chgo) 75fc5fbaf0 [IMP] theme_*: adapt s_empowerment
task-4077615
Part of task-4077427

Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-21 16:34:54 +00:00
Chrysanthe (chgo) 3243aef15b [FIX] theme_*: fix s_text_cover design
This commit has two main goals:

1. Adapt the copy of the `s_text_cover` snippet to fit each theme

2. Introduce custom images for each themes, as the `s_text_cover` was
   always using the same image until now

This commit also fixes some conflicting classes due to a change of
`background-color` in the default snippet.

task-4119904
Part of task-3619705

Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-21 16:34:53 +00:00
Chrysanthe (chgo) bb8254a09f [IMP] theme_*: adapt s_images_constellation
task-4105366
Part of task-4077427

Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-21 16:34:53 +00:00
Chrysanthe (chgo) cf5f4cc189 [FIX] theme_*: adapt s_key_benefits col-lg-* xpath selectors
This commit adapts the xpath for the `s_key_benefits` snippet that were
targeting `col-lg-4`.

As we switched the layout of this snippet to columns, we reviewed the
layout a bit, resulting in one single `col-12` on top, rather than
`col-4` and `col-12`.

As we remove this `col-lg-4`, we need to adapt all the xpaths.

task-4188740
Part of task-4077427

Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Outagant Mehdi (mou) <mou@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-21 16:34:53 +00:00
Chrysanthe (chgo) e9699d2bc3 [FIX] theme_*: fix s_cover text readability
This commit fixes a readability issue on the `s_cover` snippet.

Prior to this commit, the background was set to `o_cc4` which was quite
arbitrary, but could also create readability issues in some case.

As the image has a black filter on top of it, setting the `o_cc` class
to `o_cc5` will ensure a readable text no matter the theme/industry.

task-4190912

Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-21 16:34:53 +00:00
Brieuc-brd 46f0c8aa96 [IMP] theme_*: adapt s_quotes_carousel_minimal
task-4166189
Part of task-4077427

Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-21 16:34:53 +00:00
Brieuc-brd 42a2d6e3a6 [IMP] theme_*: adapt s_carousel_intro
task-4077628
Part of task-4077427

Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Serge Bayet (seba) <seba@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-21 16:34:53 +00:00
mano-odoo 11b9705708 [IMP] theme_*: adapt s_company_team_basic
task-4144648
Part of: task-4077427

Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Serge Bayet (seba) <seba@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-21 16:34:53 +00:00