Commit Graph

467 Commits

Author SHA1 Message Date
Serge Bayet (seba) 42b78a247d [FIX] test_themes: mock RPC calls in standalone configurator tests
The standalone theme configurator test
(test_02_theme_default_generate_primary_templates) failed locally
because `configurator_apply()` attempts to perform real HTTP requests
through `_website_api_rpc()` and `_OLG_api_rpc()`.

Standalone tests run without network access by design, so these calls
must be mocked to ensure deterministic behavior.

This commit patches both RPC methods during the test execution to return
minimal, valid fake payloads.

IAP itself does not need to be tested here: its behavior and endpoints
are already covered indirectly by the configurator_flow web tour test in
test_website_modules, which exercises the full configurator flow
end-to-end with real network access.

runbot-231270

closes odoo/design-themes#1155

X-original-commit: 9c73a79802
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-09-26 21:21:16 +00:00
Odoo Translation Bot f7178066a9 [I18N] *: fetch translation updates 2025-09-24 23:10:48 +00:00
Odoo Translation Bot 8d23f89189 [I18N] *: add new language files
Languages: az
2025-09-10 23:11:01 +00:00
Odoo Translation Bot 54e04054cc [I18N] *: fetch translation updates 2025-09-08 23:11:11 +00:00
Augustin (duau) d53ae16a85 [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#1132

Related: odoo/odoo#224076
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-09-06 16:51:22 +00:00
Augustin (duau) 59f35e4dde [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

Part-of: odoo/design-themes#1132
Related: odoo/odoo#224076
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-09-06 16:51:22 +00:00
Dylan Kiss (dyki) e50816fa82 [I18N] *: remove .tx/config
After the switch to Weblate, we now only use the `.weblate.json` file
instead of the previous `.tx/config` file.

closes odoo/design-themes#1139

X-original-commit: 74a1eb1608
Related: odoo/odoo#225467
Related: odoo/enterprise#93872
Related: odoo/documentation#14491
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
Signed-off-by: Dylan Kiss (dyki) <dyki@odoo.com>
2025-09-05 19:43:19 +00:00
Odoo Translation Bot 3c67fd6843 [I18N] *: fetch translation updates 2025-09-04 23:10:26 +00:00
Odoo Translation Bot ce3a44a7ff [I18N] *: add new language files
Languages: bg
2025-09-03 23:11:07 +00:00
Odoo Translation Bot 2cf845050d [I18N] *: fetch translation updates 2025-09-03 23:10:44 +00:00
Odoo Translation Bot 09bc566d10 [I18N] *: fetch translation updates 2025-09-02 23:11:19 +00:00
Odoo Translation Bot 2caa830d99 [I18N] *: fetch translation updates 2025-09-01 23:10:32 +00:00
Odoo Translation Bot 83bca5a0c9 [I18N] *: fetch translation updates 2025-08-29 23:10:24 +00:00
Odoo Translation Bot eaecdbb8e7 [I18N] *: fetch translation updates 2025-08-28 23:10:16 +00:00
Odoo Translation Bot 4b3ab0794c [I18N] *: fetch translation updates 2025-08-27 23:10:37 +00:00
Odoo Translation Bot 2b0af2d3a5 [I18N] *: fetch translation updates 2025-08-26 23:10:31 +00:00
Odoo Translation Bot 8c81fd69ef [I18N] *: fetch translation updates 2025-08-25 23:10:45 +00:00
abd-msyukyu-odoo ff3b83713f [IMP] website, html_builder: move image and background options
As mass_mailing will soon use the `html_builder` instead of the legacy editor,
some useful options currently exclusive to `website` can be moved to be globally
available.

task-4247642

closes odoo/design-themes#1131

Related: odoo/odoo#222345
Signed-off-by: Francois Georis (fge) <fge@odoo.com>
Co-authored-by: Damien Abeloos <abd@odoo.com>
Co-authored-by: Thomas Josse <thjo@odoo.com>
2025-08-25 15:48:06 +00:00
Odoo Translation Bot d11a932f32 [I18N] *: fetch translation updates 2025-08-22 23:10:14 +00:00
Odoo Translation Bot 91f4625e4c [I18N] *: fetch translation updates 2025-08-21 23:10:26 +00:00
Odoo Translation Bot fb051a3ce8 [I18N] *: fetch translation updates 2025-08-20 23:10:59 +00:00
Odoo Translation Bot 8aaf2f18be [I18N] *: add new language files
Languages: my
2025-08-16 23:11:06 +00:00
Odoo Translation Bot bb72cca598 [I18N] *: fetch translation updates 2025-08-15 23:14:17 +00:00
Odoo Translation Bot 5661edbe1a [I18N] *: fetch translation updates 2025-08-13 23:11:08 +00:00
Odoo Translation Bot 9a8273f1e4 [I18N] *: fetch translation updates 2025-08-11 12:35:03 +00:00
Odoo Translation Bot 9f2ea7274e [I18N] *: add new language files
Languages: hr, ku, sr@latin, pt, ro, el, mn, fa, hu, he, uk
2025-08-07 08:52:46 +00:00
Odoo Translation Bot ec6badf8a8 [I18N] *: fetch translation updates
Co-authored-by: Jessica Tuulia Sade Jäkärä (jtsj) <jtsj@odoo.com>
Co-authored-by: Larissa Manderfeld (lman) <lman@odoo.com>
Co-authored-by: Odoo Translation Bot <c3p@odoo.com>
Co-authored-by: Rasareeyar Lappiam (rlap) <rlap@odoo.com>
2025-08-07 08:46:09 +00:00
Odoo Translation Bot d77cfe51d6 [I18N] *: fetch saas-18.4 translations 2025-08-03 22:04:42 +00:00
Dylan Kiss (dyki) ef36c532b1 [I18N] *: add config file for Weblate
We are switching our translations platform from Transifex to Weblate.
Hence, we are using a new config file to sync our translations between
GitHub and Weblate.

The `.tx/config` file will be deleted in a later commit when the
Transifex sync is shut down.

closes odoo/design-themes#1122

Related: odoo/odoo#220637
Related: odoo/enterprise#91051
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2025-07-29 14:39:31 +00:00
Odoo Translation Bot 4e0285980d [I18N] *: fetch saas-18.4 translations 2025-07-28 18:15:42 +00:00
Odoo Translation Bot 876902b582 [I18N] *: fetch saas-18.4 translations 2025-07-25 18:13:59 +00:00
Odoo Translation Bot d9c2ba6353 [I18N] *: fetch saas-18.4 translations 2025-07-22 18:28:42 +00:00
Odoo Translation Bot b6bff056cd [I18N] *: fetch saas-18.4 translations 2025-07-19 17:18:11 +00:00
Odoo Translation Bot c170b67cc3 [I18N] *: fetch saas-18.4 translations 2025-07-16 18:12:36 +00:00
Odoo Translation Bot 0d80994fd8 [I18N] *: fetch saas-18.4 translations 2025-07-13 17:20:16 +00:00
Odoo Translation Bot 4887f29403 [I18N] *: fetch saas-18.4 translations 2025-07-10 18:13:40 +00:00
Odoo Translation Bot a194e69c0a [I18N] *: fetch saas-18.4 translations 2025-07-07 10:04:26 +00:00
Louis Wicket (wil) 1cc6bcda5d [I18N] export source terms
closes odoo/design-themes#1107

Related: odoo/odoo#216865
Related: odoo/enterprise#89126
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2025-07-04 16:01:19 +00:00
Thomas Josse (THJO) 823975f973 [IMP] theme_test_custo: update js import
This commit updates the js import for ImageShapeOptionPlugin as it was moved
from website to html_builder in: odoo/odoo#215136.

task-4247642

closes odoo/design-themes#1108

Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2025-07-03 15:36:23 +00:00
Hubert Van De Walle 1a000aaf89 [FIX] theme_test_custo: correct tour trigger to look for svg images
Since [1], the test "test_01_menu_hierarchies" fails.

Note that the check is not as strong as before as we cannot check the
source of the image.

Since [2], the btn-primary is now btn-secondary
---

[1]: https://github.com/odoo/odoo/commit/3cc5ff6e96493f2b068090f880987def3787895e
[2]: https://github.com/odoo/odoo/commit/eca4d1b1d4ea58959793b0a2cbfa443308759372

runbot-226641

closes odoo/design-themes#1106

Signed-off-by: Robin Lejeune (role) <role@odoo.com>
2025-06-25 16:56:54 +00:00
Christophe Monniez a0204e647d [REL] saas-18.4 2025-06-24 11:05:33 +00:00
Robin Lejeune (role) 030218b557 [FIX] test_themes: use new website switcher systray
Commit [e96ce8ed] deleted the old website systray items, which have been
moved and slightly rewritten with the [refactor into html_builder]. In
the process, patches made in test_themes were overlooked.
This commit makes sure to patch the right component and template.

[e96ce8ed]: https://github.com/odoo/odoo/commit/e96ce8edb020b55bc6ccd7fa579f31ee80d600f7
[refactor into html_builder]: https://github.com/odoo/odoo/commit/9fe45e2b7ddb

runbot-226545

closes odoo/design-themes#1101

Signed-off-by: Robin Lejeune (role) <role@odoo.com>
2025-06-13 16:53:06 +00:00
Krzysztof Magusiak (krma) a0bff7ba5b [MOV] website: MockRequest to tests.common
closes odoo/design-themes#1095

Related: odoo/odoo#212405
Related: odoo/enterprise#86717
Related: odoo/upgrade#7775
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2025-06-10 13:08:17 +00:00
Brieuc-brd 83ca4251c8 [IMP] theme_artists, *: adapt s_attributes_horizontal
*: theme_loftspace, theme_nano, theme_orchid

This commit adapts customizations for `s_attributes_horizontal`.

task-4775848
Part of task-4252024

closes odoo/design-themes#1061

Related: odoo/odoo#208764
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-06-05 21:58:42 +00:00
Louis (loco) bcb3f3718a [FIX] theme_test_custo: rename wrong template
[1] adapted the code to work with the new website builder (introduced by
[2]). The problem is that since [3], some templates have been renamed
and `html_builder.FooterTemplateOption` became
`website.FooterTemplateOption`. The commit changes the occurrence of
`html_builder.FooterTemplateOption` into `website.FooterTemplateOption`
in `design-themes`.

[1]: https://github.com/odoo/design-themes/commit/0ce1455aac7d95154b92daa98fb8ffbf27d12f1a
[2]: https://github.com/odoo/odoo/commit/9fe45e2b7ddbbfd0445ffe25a859e67a316d02b2
[3]: https://github.com/odoo/odoo/commit/f32212f6a4e1c9915791a5d4d63a57bbcb40ac61

runbot-226494

closes odoo/design-themes#1097

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-06-05 19:33:55 +00:00
Louis (loco) 0ce1455aac [FIX] theme_test_custo: adapt design themes to the new website builder
Since [this commit], the website builder has been rewritten. Due to it,
`we-` options are deprecated. This commit adapts all the `xpath` to old
options into the new way of doing. This commit also adapts the
`theme_menu_hierarchies` tour for it to work with the new builder.

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

Related to task-4367641
runbot-223813
runbot-223815

closes odoo/design-themes#1087

Related: odoo/odoo#211725
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-06-04 14:49:05 +00:00
Nicolas Lempereur 927b4c86c5 [FIX] theme_cobalt,theme_paptic: enable blog Inter bolder
Scenario:
- install theme_cobalt or theme_paptic
- go to a website blog post
- put a word in bold

Result: the bold is not shown bolder than the text

Issue: Inter font in theme_cobalt and theme_paptic loads weights 400,
600 and 800. The blog post normal font weight is 300 since 2019 (in
odoo/odoo@bb0cdec459) and so both normal
font-weight and bold inside it are shown with weight 400 which make bold
not differentiated.

Fix: add 300 weight to Inter font.

Note: in 18.0, Inter font already has weight 300 in theme_odoo_experts,
theme_enark, theme_vehicle, theme_bookstore, theme_nano, theme_clean and
website but it is still missing for cobalt and paptic themes.

opw-4818737

closes odoo/design-themes#1094

X-original-commit: 55ddb9fea8
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2025-06-02 10:58:46 +00:00
assk-odoo 2e43e42596 [FIX] theme_test_custo: remove the console error in test_assets mode
The "Test" key is unnecessary in the tour registry, as it has already been
removed from the Tour Schema (see PR[1]). Also, refactor the tour
definitions to follow the updated step structure.

[1]:https://github.com/odoo/odoo/pull/182887

task-4702436

closes odoo/design-themes#1086

X-original-commit: 0295bf1567
Signed-off-by: Serge Bayet (seba) <seba@odoo.com>
2025-05-23 00:51:16 +00:00
qsm-odoo c0d3a66313 [FIX] theme_test_custo: fix nightly theme preview tour
The theme preview feature before selection was disabled in [1]. This
commit disables the related tour steps that were testing it a nightly
tour... that was red since then.

[1]: https://github.com/odoo/odoo/commit/7cb71e9479df0ee9af0b7ad39302857666726177

Related to task-3454790

closes odoo/design-themes#1082

X-original-commit: b4dfb01abe
Related: odoo/odoo#210890
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-05-22 20:28:05 +00:00
Hubert Van De Walle cdc0150ddb [FIX] theme_test_custo: adapt test_website_theme_preview tour
Follow-up of f38205873e

X-original-commit: d741e3ed3a
Part-of: odoo/design-themes#1082
Related: odoo/odoo#210890
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-05-22 20:28:05 +00:00