Commit Graph

140 Commits

Author SHA1 Message Date
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
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) 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
mano-odoo 54bf4c2941 [IMP] theme_notes: 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

closes odoo/design-themes#1137

Related: odoo/odoo#225310
Signed-off-by: Antoine Sougné (anso) <anso@odoo.com>
2025-09-09 07:11:27 +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) 7fc9343344 [FIX] *: update tours to use new DOM structure
*: theme_bookstore, theme_kiddo, theme_notes, theme_odoo_experts

DOM structure was modified in website refactor [1], those tours were
still using the former one because they were silently disabled during
the refactor. See community PR for details (which re-enables them).

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

Related to opw-5020952
Related to opw-5040694

X-original-commit: 59f35e4dde
Part-of: odoo/design-themes#1141
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
Louis Wicket (wil) 81f10d7ba7 [I18N] export source terms
closes odoo/design-themes#1110

Related: odoo/odoo#217580
Related: odoo/enterprise#89572
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2025-07-14 11:58:30 +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
Louis Wicket (wil) d7eb6bb7d9 [I18N] export source terms
closes odoo/design-themes#1060

X-original-commit: 889e5b8e02
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2025-06-25 11:46:31 +00:00
Brieuc-brd b2beaaffa0 [IMP] theme_anelusia, *: adapt s_quotes_carousel_compact
*: theme_artists, theme_clean, theme_enark, theme_loftspace, theme_nano,
theme_notes

This commit adapts customizations for `s_quotes_carousel_compact`.

task-4174008
Part of task-4077427

closes odoo/design-themes#993

Related: odoo/odoo#184670
Signed-off-by: Serge Bayet (seba) <seba@odoo.com>
2025-04-19 10:09:41 +00:00
Mehdi Outagant (MOU) bd8ff4cb1d [FIX] theme_*: translate paragraph links as a whole.
*: artists, cobalt, enark, graphene, kea, kiddo, loftspace, monglia, nano,
notes, odoo_experts, orchid, paptic, real_estate, vehicle, yes

Steps to reproduce:

1. Enable a second language in the website (e.g., French).

2. Add a "Text" block (in edit mode) > Save the page.

3. Translate a text paragraph to french > Save.

4. In edit mode again, add a link to a word in the paragraph > Save.

5. The translation in French is lost, and sometimes the whole French
    translation is used for the text before or after the link.

This is actually a limitation in the translation implementation. If we
initially have `text_1_en text_2_en text_3_en` translated to French this
way:

terms en_US: `["text_1_en text_2_en text_3_en"]`
terms fr_BE: `["text_1_fr text_2_fr text_3_fr"]`

After adding a link: `text_1_en<a...>text_2_en</a>text_3_en`, and since
the links are not translated as a whole, we should get:

terms en_US: `["text_1_en", "text_2_en", "text_3_en"]`
terms fr_BE: `["text_1_fr text_2_fr text_3_fr"]`

Which means the current translation will be lost, and the result will
depend on the outcome of `get_close_matches()`. Which explains why when
the link is added to the first words of the paragraph, the system still
maps the rest of the paragraph to its "full old translation".

The goal of this commit is to make this behavior less aggressive by
forcing the links added in paragraphs [1] to be translated as a whole.
This way, the `get_close_matches()` will map the new content with a link
to its old translation (without a link), and then, the user can set the
link in the "the most meaningful part of the translation" in the
translate mode.

[1]: We should use the "translate as a whole" feature carefully with
links, since there are already some situations where it's causing
issues (see the fix in [2]). So we only force them inside paragraphs.

[2]: https://github.com/odoo/odoo/commit/9bd60ca93510e410a0136b8b433f596330900593

Remark: This commit also sets the `o_translate_inline` class by default
on paragraph links in website templates.

opw-3984439

closes odoo/design-themes#1055

Related: odoo/odoo#204453
Signed-off-by: Outagant Mehdi (mou) <mou@odoo.com>
2025-04-14 09:28:47 +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
Denis Rygaert 88b06392a3 [FIX] theme_anelusia, *: update xpath to removed s_nb_column_fixed
*: theme_bewise, theme_cobalt, theme_kiddo, theme_loftspace,
   theme_monglia, theme_nano, theme_notes, theme_odoo_experts,
   theme_orchid, theme_paptic, theme_yes, theme_zap

Multiple snippet template where changed to ensure that the title is not
considered as a column and allowing changing the nb of columns again.
This commit adapts all the xpath that were impacted by those changes.

task-4310468

closes odoo/design-themes#1047

Related: odoo/odoo#195409
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-03-31 23:05:39 +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) a1e425d1b6 [IMP] theme_*: adapt s_form_aside snippet across themes
*: artists, nano, notes, vehicle

This commit adapt the occurrences of the `s_form_aside` snippet across
themes.

task-4135499
part of task-4077427

closes odoo/design-themes#1007

Related: odoo/odoo#184094
Signed-off-by: Ivan Klapka (ivkl) <ivkl@odoo.com>
2025-02-17 18:54:47 +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
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
Xavier Luyckx (xlu) 5051a4a68a [IMP] theme_*: adapt themes with new s_company_team_grid snippet
*: anelusia, artists, beauty, bewise, bistro, bookstore, clean, cobalt,
kea, kiddo, monglia, nano, notes, orchid, real_estate, treehouse,
vehicle, yes

This commit adapts the design of new `s_company_team_grid` snippet for
multiple themes.

task-4150614

closes odoo/design-themes#901

Part-of: task-4077427
Related: odoo/odoo#179791
Signed-off-by: Christopher du Toit (chto) <chto@odoo.com>
2025-02-12 17:48:34 +00:00
mano-odoo b9b7ebd9e9 [IMP] theme_*: adapt s_comparisons_horizontal to themes
*: theme_anelusia, theme_artists, theme_avantgarde, theme_aviato,
theme_beauty, theme_bistro, theme_enark, theme_kea, theme_loftspace,
theme_monglia, theme_nano, theme_notes, theme_orchid, theme_treehouse,
theme_vehicle, theme_yes, theme_zap

This commit adapts the themes to the new `s_comparisons_horizontal`
snippet.

task-4105264
Part of task-4077427

closes odoo/design-themes#992

Related: odoo/odoo#184281
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
2025-02-12 10:07:05 +00:00
Chrysanthe (chgo) 3e1fe98a4e [IMP] theme_*: adapt s_website_form_cover snippet
*: theme_anelusia, theme_artists, theme_avantgarde, theme_aviato,
theme_beauty, theme_bewise, theme_bistro, theme_bookstore, 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 reviews the occurrences of `s_website_form_cover` across
design themes.

task-4138250

closes odoo/design-themes#1010

Part-of: task-4077427
Related: odoo/odoo#178102
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-01-31 10:54:34 +00:00
Xavier Luyckx (xlu) 99b5db0139 [IMP] theme_*: adapt themes with new s_company_team_spotlight snippet
*: artists, aviato, bistro, nano, notes

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

task-4147920

closes odoo/design-themes#903

Part-of: task-4077427
Related: odoo/odoo#179844
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-01-30 16:58:01 +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
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
Benjamin Vray 9537149afc [FIX] theme_*: fix breadcrumb color
*: anelusia, anelusia, enark, kiddo, loftspace, notes

- Install Website e-commerce.
- Select the "Kea" theme for your website.
- Go to the "/shop" page.
- Click on "Desks" category to go to the "/shop/category/desks-1" page.
- Click on edit to enter edit mode.
- Click on the "theme" tab.
- Change the website background color to "black".
- Bug: The breadcrumb has an ugly white background instead of no
background color, as in the "default" theme. Also, the "active"
breadcrumb item is hidden due to white text on a white background.

This commit removes the white background from the breadcrumb for all
themes that use it. This ensures the same appearance as other themes.

opw-4232082

closes odoo/design-themes#1018

X-original-commit: fe91239586
Signed-off-by: Serge Bayet (seba) <seba@odoo.com>
2024-11-22 07:12:21 +00:00
Chrysanthe (chgo) 8366f30360 [FIX] theme_*: fix numbers snippets layout across themes
*: nano, notes, odoo_experts, treehouse, zap

This commit reviews the occurrences of the `s_numbers_*` snippets
to align them with the new layout of these snippets.

Prior to this commit, the layout of those snippet was "broken" due to
weird structure like nested rows, .. which prevents the editor to apply
a change on the whole content.

As we reworked the layout of these snippets to fix the issue, we need to
apply these changes in themes as well.

task-4223179

closes odoo/design-themes#1012

Related: odoo/odoo#185688
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-11-20 14:17:48 +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
qsm-odoo 10148e0354 [FIX] test_themes, theme_*: fix errors in theme tours
Also disable the two theme tours that currently do not pass (for some
reason, they are not even starting at all). To fix later.

X-original-commit: 04f90cd883
Part-of: odoo/design-themes#971
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
Soukéina Bojabza 9a88113348 [FIX] theme_*: adapt s_carousel_intro without display: flex
*: bewise, loftspace, monglia, notes, vehicle

In the community PR, the `s_carousel_intro` snippet has been modified in
order to not be in `display: flex` anymore.

This commit adapts this snippet customizations to these changes. More
precisely, it adapts the vertical padding and the grid areas to the text
content, in order to avoid having an overflow.

It also fixes the "Monglia" customization by removing the background
color of the slides, in order to make the added shape visible.

Related to task-4077628

closes odoo/design-themes#955

X-original-commit: d8e52e96b5
Related: odoo/odoo#181816
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
2024-09-27 17:42:56 +00:00
Soukéina Bojabza 85946a8b91 [FIX] theme_*: adapt s_card_offset without display: flex
*: anelusia, avantgarde, beauty, bistro, bookstore, enark, kiddo,
loftspace, monglia, nano, notes, odoo_experts, paptic, real_estate,
treehouse, yes, zap

In the community PR, the `s_card_offset` snippet has been modified in
order to not be in `display: flex` anymore. The visual was then kept as
close as possible to how it was before by using the grid padding.

This commit adapts this snippet customizations to these changes. More
precisely, it adapts the vertical padding to the text content, in order
to center it a bit while avoiding having an overflow.

Related to task-4105038

X-original-commit: 127a07fdc5
Part-of: odoo/design-themes#955
Related: odoo/odoo#181816
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
2024-09-27 17:42:56 +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
mano-odoo 0bb5f6c93e [IMP] theme_notes: revamp theme
Revamp the theme design and adapt its existing snippets

task-4178083
Part of task-4177975

closes odoo/design-themes#927

Signed-off-by: Alice Gaudon (agau) <agau@odoo.com>
2024-09-24 16:22:19 +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
Antoine (anso) 05fdc8e75f [IMP] theme_*: adapt s_product_list
task-4048196
Part of task-3619705

Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Soukéina Bojabza (sobo) <sobo@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) 21bc9a1106 [IMP] theme_*: adapt s_shape_image
task-4094366
Part of task-4077427

Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Soukéina Bojabza (sobo) <sobo@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