Commit Graph

253 Commits

Author SHA1 Message Date
Odoo Translation Bot 9f4fc63bac [I18N] Update translation terms from Transifex 2025-02-02 04:34:48 +01:00
Odoo Translation Bot caa7aaaac5 [I18N] Update translation terms from Transifex 2025-01-26 04:34:08 +01:00
Odoo Translation Bot 804c456ea4 [I18N] Update translation terms from Transifex 2025-01-19 04:33:30 +01:00
Odoo Translation Bot 9f80e504e5 [I18N] Update translation terms from Transifex 2025-01-12 04:34:58 +01:00
Odoo Translation Bot b36b9076cc [I18N] Update translation terms from Transifex 2025-01-05 04:34:11 +01:00
Odoo Online 6c55565824 [I18N] Update translation terms from Transifex 2024-12-22 04:33:22 +01:00
qsm-odoo c0d9b76f86 [FIX] test_themes: restore the website switcher
The forward-port of [1] made no adaptation to the code, and it now
simply crashes when trying to use the website switcher when test_themes
is installed.

This also fixes a linter error introduced by that same [1] commit.

[1]: https://github.com/odoo/design-themes/commit/c3af5d9796929025c9503ab639afc8c60a262b3f

closes odoo/design-themes#1034

X-original-commit: d1a88fc633
Related: odoo/odoo#191173
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-12-19 16:02:58 +00:00
Odoo Online 9f1c6b092a [I18N] Update translation terms from Transifex 2024-12-15 04:33:33 +01:00
William Braeckman 1df19c7db0 [FIX] test_themes: allow proper patch website_swit
..cher

Defines dataset directly on website elements such that it can be
overridden by other modules if necessary.
This was done due to the override in the `test_themes` module completely
overriding all attributes of the website_switcher's dropdown items.

Runbot Error 106501

closes odoo/design-themes#1027

X-original-commit: c5f4e1c414
Related: odoo/odoo#190475
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2024-12-12 15:44:56 +00:00
Odoo Online 90c8be2fca [I18N] Update translation terms from Transifex 2024-12-08 04:32:43 +01:00
Odoo Online fddc09dff6 [I18N] Update translation terms from Transifex 2024-12-01 04:33:25 +01:00
Odoo Online f17fc8f594 [I18N] Update translation terms from Transifex 2024-11-24 04:33:15 +01:00
Benjamin Vray 854fe3b1f4 [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#1016

X-original-commit: fe91239586
Signed-off-by: Serge Bayet (seba) <seba@odoo.com>
2024-11-22 06:39:59 +00:00
Odoo Online 9468ad4d71 [I18N] Update translation terms from Transifex 2024-11-17 04:33:10 +01:00
Odoo Online 2ef410f14f [I18N] Update translation terms from Transifex 2024-11-10 04:33:42 +01:00
Odoo Translation Bot 25c4e3d55c [I18N] Update translation terms from Transifex 2024-10-27 04:33:03 +01:00
Soukéina Bojabza 4c6c40b756 [FIX] theme_cobalt, theme_paptic: add some missing image classes
In some theme customizations, some replaced images do not have the usual
image classes `img img-fluid mx-auto` anymore. The `img-fluid` one is
needed for grid images in mobile view, as they are overflowing without
it.

This commit adds these missing classes on the identified problematic
images.

closes odoo/design-themes#998

X-original-commit: c5adf9a903
Related: odoo/odoo#185404
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-10-26 14:58:37 +00:00
Odoo Translation Bot c57138ac55 [I18N] Update translation terms from Transifex 2024-10-20 04:33:04 +02:00
Odoo Translation Bot 51896b98d0 [I18N] Update translation terms from Transifex 2024-10-13 04:34:15 +02:00
Odoo Translation Bot 04ba112359 [I18N] Update translation terms from Transifex 2024-09-29 04:33:17 +02:00
Odoo Translation Bot 945a22ebdd [I18N] Update translation terms from Transifex 2024-09-22 04:37:29 +02:00
Odoo Translation Bot 2a801e29eb [I18N] Update translation terms from Transifex 2024-09-15 04:34:17 +02:00
Odoo Translation Bot f0d429790e [I18N] Update translation terms from Transifex 2024-09-08 04:44:43 +02:00
Odoo Translation Bot 3858edae80 [I18N] Update translation terms from Transifex 2024-09-01 04:37:36 +02:00
Odoo Translation Bot 9af81730e8 [I18N] Update translation terms from Transifex 2024-08-25 04:33:50 +02:00
Odoo Translation Bot b14bb9a48b [I18N] Update translation terms from Transifex 2024-08-18 04:35:21 +02:00
Odoo Translation Bot 5d6a0c0fc0 [I18N] Update translation terms from Transifex 2024-08-11 04:38:09 +02:00
Odoo Translation Bot 79b30607e4 [I18N] *: export saas-17.4 source terms 2024-07-20 02:38:56 +00:00
Louis Wicket (wil) ee2b1f0c6e [I18N] export source terms
closes odoo/design-themes#831

Related: odoo/odoo#173324
Related: odoo/enterprise#66743
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2024-07-17 14:44:07 +00:00
Christophe Monniez c51f3a853a [REL] saas-17.4 2024-07-11 14:21:13 +00:00
Pierre Pulinckx (PIPU) 96c4cb68ad [REF] theme_*: remove extra_trigger
In order to simplify the tours API, it was decided to remove the
extra_trigger key from the steps.
To check that an element is in the DOM, simply create a step with
a trigger.

task~3974087

closes odoo/design-themes#816

Related: odoo/odoo#171309
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-07-02 09:46:48 +00:00
Soukéina Bojabza 3cd215853a [FIX] theme_enark: set a real boolean value to btn-outline-primary
For each theme, there are files redefining the different website SCSS
variables, in order for the color palettes, fonts, buttons,... to have
the styles defined by them. These redefinitions are also used by the
"Theme Options", to show the current values in the different widgets.

In order for the primary buttons to be "outlined", the "Enark" theme set
the `btn-primary-outline` variable to `'true'`. However, this value
should be a boolean instead of a string. Indeed, since the option does
not recognize the string value, the "Buttons Primary Style" widget
therefore shows a "/" instead of "Outline", which is not correct.

This commit fixes this by setting a boolean value.

opw-3957157

closes odoo/design-themes#814

X-original-commit: 14ff983da2
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-06-21 08:45:38 +00:00
Pierre Pulinckx (PIPU) b4c5bea2ea [REF] web_tour: prepare to change the default action in tour_compiler
Currently, in tour_compiler, to check that an element is actually
present in the DOM in a step, there are 2 possibilities.
- `isCheck: true` => Checks that the element is in the DOM.
The latter can be disabled.
- `run() {}` => Checks that the element is in the DOM (because this
is what is done by default). However, if the element is disabled,
the step will be aborted.

In the codebase, we can see a lot of `run() {} //it's a check` and
`isCheck:true`. However, the behavior is not exactly the same.
What's more, there are 2 ways to do "the same thing".
In order to clarify the turns API, it was decided to no longer put an
action (step.run) by default. (Previously, the default action was
the "click" action).
From then on, it is no longer necessary to stipulate
`step.isCheck: true` nor `run() {}`.
The corollary is that now, you must explicitly write `run: click`, if
you want the click action to be triggered on the target.

This commit sets the stage for making this change.

closes odoo/design-themes#801

Related: odoo/odoo#167743
Related: odoo/enterprise#63711
Signed-off-by: Julien Mougenot (jum) <jum@odoo.com>
2024-06-05 11:10:18 +00:00
Louis Wicket (wil) e93b18725a [I18N] configure Transifex project for 17.3
closes odoo/design-themes#803

X-original-commit: 2bab74e170
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2024-06-05 09:34:31 +00:00
qsm-odoo 4b360985b6 [IMP] *: simplify s_hr snippet xml and css
See community commit for details.

closes odoo/design-themes#799

Related: odoo/odoo#162828
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-04-23 16:24:47 +00:00
Benjamin Vray 80aa5ad40e [FIX] test_themes: fix test new page templates
The following commit [1] added a test to verify that there are no
duplicate classes in the elements of predefined page templates.

This test worked fine until it failed when we attempted to merge a
commit in which a template is rendered with empty spaces in the class
attribute of an element. The test considered the empty spaces as classes
and therefore assumed that two identical classes existed.

This commit excludes empty spaces when retrieving classes in this test.

[1]: https://github.com/odoo/design-themes/commit/758e2ab819df37c56103b1e82f1e6358b3dba00c

task-3662985

closes odoo/design-themes#792

X-original-commit: 05cfe05280
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
2024-03-20 09:35:08 +00:00
qsm-odoo 8ab0d1cd8d [FIX] theme_*: make s_picture image responsive by default
Some themes were making the s_picture image responsive on their own. It
is now done generically, so the theme extensions must be removed to be
able to merge.

task-3266862

closes odoo/design-themes#787

X-original-commit: 08cb536b02
Related: odoo/odoo#157813
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-03-19 14:13:49 +00:00
Guillaume-gdi 9ca60388f1 [REM] theme_*: remove useless scss variable overrides
This commit removes the overrides of scss variables that are set to the
default value and duplicated overrides.

task-2463604

closes odoo/design-themes#768

Signed-off-by: Outagant Mehdi (mou) <mou@odoo.com>
2024-03-15 15:59:06 +00:00
Pierre Pulinckx (PIPU) 45061e7cc4 [REF] *: use iframe hoot pseudo selector in tour triggers
In this commit, we change rest of triggers in tours where an iframe is
selected (suite of #156653).
To do this, we use the :iframe HOOT pseudo-selector.
With this changes, we can now remove the getNodesFromSelector
function in odoo/addons/web_tour/static/src/tour_service/tour_utils.js
Note that in this previous function, a ([is-ready]="true") check was
made for iframe elements but was only necessary for few of them (7).
So, a stepUtils.waitIframeIsReady() has been added to check this state.

closes odoo/design-themes#783

Related: odoo/odoo#157217
Related: odoo/enterprise#58474
Signed-off-by: Julien Mougenot (jum) <jum@odoo.com>
2024-03-12 23:29:57 +00:00
Soukéina Bojabza 833a667000 [FIX] theme_test_custo: consider the top_menu navbar class in tests
In PR [1], the duplicated navbars ids `o_main_nav` and `top_menu` are
replaced by classes, to avoid having the same ids multiple times in the
DOM. Note that for stability, the ids are kept for the desktop view
navbar.

This commit adapts the tests so they now consider the classes and not
the ids.

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

task-3609531

closes odoo/design-themes#780

X-original-commit: 103e544835
Related: odoo/odoo#156013
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-03-06 11:37:50 +00:00
Arthur Detroux (ard) 100bcbd810 [FIX] test_themes: fix test_01_theme_upgrade_post_copy
Commit [1] introduced a new test that uninstalls theme_buzzy. This leads
to the whole module being uninstalled because this module has all themes
as dependencies.

To fix this, we just run the test as the last test, ensuring the module
is still installed for other tests.

Ideally, tests would be independent from one another, but for now, the
order matters.

[1]: https://github.com/odoo/design-themes/commit/4cdd1db20c021ebd369b46c739591def9732eec5

closes odoo/design-themes#782

X-original-commit: 45e9374699
Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
2024-03-05 08:42:04 +00:00
qsm-odoo f528aa8948 [FIX] theme_kea: add missing images
Commit [1] introduced new images for the theme, alongside their related
ir.attachment definition. Later, a refactoring of the theme was made at
commit [2]. During that refactoring, multiple mistakes were made. Three
image files were removed: s_image_text.jpg, s_text_image.jpg and
s_banner.jpg. Out of these 3, only one related ir.attachment was
adapted to not use the removed image anymore: s_banner. Thus this left
two dead ir.attachment pointing to images that do not exist anymore.
Note that the banner image was actually restored later at [3]. Until
there... just dead code, although it could potentially be used and crash
by custo (this is why this targets the same version as [2]). Indeed, [2]
also patched the use of those two removed images in their related
snippet by changing the related image sources directly (using a special
route of the web_editor which generates SVG).

However, in [4], we started using one of those two images (via its xmlid
/ key) in another snippet: the new image snippet. This thus break the
kea theme when using that new snippet because the ir.attachment that is
used for that image still referenced an image that was removed by [2].

[1]: https://github.com/odoo/design-themes-old/commit/66bf0fc439f8549b00cbdf2eaa2b9517b6ac9876
[2]: https://github.com/odoo/design-themes/commit/004e38398a98ba61e587bf12b8bfc5e396baa434
[3]: https://github.com/odoo/design-themes/commit/5b8e14b83dba05e23d2a20418484b56b5f3b05cc
[4]: https://github.com/odoo/odoo/commit/507b80a12574ce19bcb925d88868fb377b1c4b06

opw-3689096

closes odoo/design-themes#777

X-original-commit: 5778e692f9
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-02-23 22:46:01 +00:00
Serge Bayet (seba) ace1b39d46 [IMP] *: adapt themes due to changes made in s_picture snippet
*: theme_bistro, theme_odoo_experts, theme_vehicle, theme_avantgarde,
theme_aviato, theme_bookstore, theme_enark, theme_graphene, theme_kea

This commit adapts the themes to accommodate layout changes in the
s_picture snippet.

See also : https://github.com/odoo/odoo/pull/145413
task-3626753

closes odoo/design-themes#753

Related: odoo/odoo#145413
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2024-02-19 19:27:13 +00:00
Serge Bayet (seba) 6427cae199 [FIX] theme_vehicle: fix the vehicle s_picture theme layout
This commit addresses the issue with the customization of the s_picture
snippet within the theme_vehicle. Previously, this snippet enforced a
column height, which cannot be modified using the editor. Themes should
not impose customizations that users are unable to adjust using the
editor.

See also : odoo/odoo#145413
task-3626753

Part-of: odoo/design-themes#753
2024-02-19 19:27:13 +00:00
Bruno Boi (boi) e50cc5032b [FIX] test_themes: adapt switcher tooltip format
This adapts the WebsiteSwitcherSystray's DropdownItem
tooltips dataset to the changed API brought in
the community repository.

closes odoo/design-themes#765

Task: 3266145
Related: odoo/enterprise#48452
Related: odoo/odoo#137691
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2024-02-07 09:49:24 +00:00
Romain Derie 1d47f8ad57 [IMP] test_themes: add test for fix about primary template generation
See previous commit.

closes odoo/design-themes#761

X-original-commit: 14c3bbb9ff
Related: odoo/odoo#151375
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2024-02-03 06:07:04 +00:00
Benoit Socias 9c0707ceac [FIX] theme_*: call _generate_primary_templates before importing data
To make sure the required primary templates have been generated from
the theme's manifest when inherited views are imported/updated, this
commit triggers their generation from a first imported XML file.

This has been added to all themes for consistency, even the ones that
do not require it currently.

Related to https://github.com/odoo/odoo/pull/148443

task-3670496

X-original-commit: 22abe61eaf
Part-of: odoo/design-themes#761
2024-02-03 06:07:04 +00:00
Benoit Socias 51c310c785 [IMP] test_themes: test that theme_default templates are generated
This commit adds a test that verifies if the theme_default's
configurator templates are generated whenever the website module is
either installed or updated.

Related to https://github.com/odoo/odoo/pull/151501.

task-3670496

closes odoo/design-themes#763

X-original-commit: b8aae07df4
Related: odoo/odoo#151682
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2024-01-30 10:54:18 +00:00
Benoit Socias aed6d0585b [FIX] theme_*: remove unused configurator snippets
When shapes were extracted to configurator snippets in [1], some
configurator-specific snippets were created that do not appear on pages
of the specific theme.
Because in [2] the call to `_generate_primary_snippet_templates` is done
on a full list of themes instead of only the installed ones, the problem
was not noticed: if any theme defines a block, it's website-side
configurator-specific template is generated.
This is not the case during an upgrade: the templates are generated only
for the installed themes. Because of this some "useless" configurator
templates trigger an error when importing their XML definition because
their parent template does not exist.

This commit fixes this by removing those templates.

[1]: https://github.com/odoo/design-themes/commit/d206c119720d557c11320ebb3d7339890b8f9efa
[2]: https://github.com/odoo/odoo/commit/928eeca714a161f6bc03343e4dc8af9b050b9841#diff-f49a1e9eda23df9f1d48121ba376a5fabafe70ea18b29d4eab23d737e5d4eeb6R446

closes odoo/design-themes#752

X-original-commit: 7b27828755
Related: odoo/odoo#144666
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-12-07 20:45:45 +00:00
Arthur Detroux (ard) 9592392158 [FIX] theme_aviator, theme_odoo_experts: Update homepage tours
Since [1], some blocks in theme_aviato and theme_odoo_experts no longer
have shapes by default, so add a step to toggle a shape.

[1]: https://github.com/odoo/design-themes/commit/d206c119720d557c11320ebb3d7339890b8f9efa

opw-3595512

closes odoo/design-themes#746

X-original-commit: bea0f57ca4
Related: odoo/odoo#142362
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-11-27 13:31:03 +00:00