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
closesodoo/design-themes#1157
X-original-commit: 42b78a247d
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
*: 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
closesodoo/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>
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
closesodoo/design-themes#1137
Related: odoo/odoo#225310
Signed-off-by: Antoine Sougné (anso) <anso@odoo.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Co-authored-by: Xavier Luyckx (xlu) <xlu@odoo.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
*: 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
closesodoo/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>
After the switch to Weblate, we now only use the `.weblate.json` file
instead of the previous `.tx/config` file.
We update the `.weblate.json` file to reflect the current state of the
module translations and remove the `.tx/config` file.
closesodoo/design-themes#1140
X-original-commit: e50816fa82
Related: odoo/odoo#225795
Related: odoo/enterprise#94040
Related: odoo/documentation#14507
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
Signed-off-by: Dylan Kiss (dyki) <dyki@odoo.com>
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
closesodoo/design-themes#1133
X-original-commit: ff3b83713f
Related: odoo/odoo#224122
Signed-off-by: Francois Georis (fge) <fge@odoo.com>
Signed-off-by: Damien Abeloos (abd) <abd@odoo.com>
Co-authored-by: Damien Abeloos <abd@odoo.com>
Co-authored-by: Thomas Josse <thjo@odoo.com>
*: 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
closesodoo/design-themes#1126
Related: odoo/odoo#221505
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
The testing suite tests, among other things, that a s_xxx_yyy class can
only be used on a sub-element (or the same element) of a s_xxx one (or
being on the root element, as being the name of the snippet).
This commit now also allows s_something_xxx (so prefixing instead of
suffixing) when on the same element. E.g. "s_newsletter_benefits_popup"
alongside the "s_popup" class for the new "s_newsletter_benefits_popup"
snippet.
Related to task-4306887
Part of task-4077427
closesodoo/design-themes#1130
Related: odoo/odoo#186820
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit whitelists dynamic snippet layout classes in the themes test
for blog posts and events. These layouts are now individually accessible
via the snippet selection dialog, with a separate snippet available for
each layout.
This commit also updates conflicting padding class rules to allow
combinations like `p-size(i) p[s|e|t|...]-size(j)` in snippets, while
still preventing invalid combinations such as `p-size(i) p-size(j)`.
task-4280375
closesodoo/design-themes#1127
Related: odoo/odoo#190514
Related: odoo/enterprise#75556
Signed-off-by: Serge Bayet (seba) <seba@odoo.com>