Commit Graph

303 Commits

Author SHA1 Message Date
William Braeckman 1eb2e1cc38 [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#1025

X-original-commit: c3af5d9796
Related: odoo/odoo#190366
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2024-12-11 17:09:13 +00:00
Odoo Online 44226d822a [I18N] Update translation terms from Transifex 2024-12-08 00:55:19 +01:00
Odoo Online 82d10c691c [I18N] Update translation terms from Transifex 2024-12-01 00:57:28 +01:00
Odoo Online f9f69e0ec1 [I18N] Update translation terms from Transifex 2024-11-24 00:56:55 +01:00
Benjamin Vray e867c1c43f [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#1014

X-original-commit: fe91239586
Signed-off-by: Serge Bayet (seba) <seba@odoo.com>
2024-11-22 10:11:25 +00:00
Odoo Online 53fc345963 [I18N] Update translation terms from Transifex 2024-11-17 00:56:49 +01:00
Odoo Online 003cf404cd [I18N] Update translation terms from Transifex 2024-11-10 00:58:24 +01:00
Odoo Online 30d72ee6c5 [I18N] Update translation terms from Transifex 2024-11-03 00:55:15 +01:00
Odoo Translation Bot c54287f830 [I18N] Update translation terms from Transifex 2024-10-27 00:56:51 +02:00
Soukéina Bojabza c5adf9a903 [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#984

Related: odoo/odoo#183013
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-10-26 02:18:25 +00:00
Odoo Translation Bot cd3aeaec94 [I18N] Update translation terms from Transifex 2024-10-20 00:58:17 +02:00
Odoo Translation Bot bcc5727690 [I18N] Update translation terms from Transifex 2024-10-13 00:56:55 +02:00
Odoo Translation Bot fa9ee1ec97 [I18N] Update translation terms from Transifex 2024-10-06 00:56:50 +02:00
Odoo Translation Bot e5b2da11e8 [I18N] Update translation terms from Transifex 2024-09-29 01:03:00 +02:00
Odoo Translation Bot 02166ee2c8 [I18N] Update translation terms from Transifex 2024-09-22 00:56:47 +02:00
Odoo Translation Bot e28a436026 [I18N] Update translation terms from Transifex 2024-09-15 00:56:48 +02:00
Odoo Translation Bot a553d84598 [I18N] Update translation terms from Transifex 2024-09-08 01:32:21 +02:00
Odoo Translation Bot ae7bd643f1 [I18N] Update translation terms from Transifex 2024-09-01 00:55:13 +02:00
Odoo Translation Bot 464b2bdb6b [I18N] Update translation terms from Transifex 2024-08-25 00:56:27 +02:00
Odoo Translation Bot 92e83bc22e [I18N] Update translation terms from Transifex 2024-08-18 01:01:26 +02:00
Odoo Translation Bot d82ed9f4a8 [I18N] Update translation terms from Transifex 2024-08-11 00:50:25 +02:00
Odoo Translation Bot 41704ac204 [I18N] *: fetch 17.0 translations from Transifex 2024-08-05 06:18:02 +00:00
Odoo Translation Bot ab8e7b1550 [I18N] *: export 17.0 source terms 2024-07-20 02:37:45 +00:00
Odoo Translation Bot 15c7bf77a6 [I18N] *: export 15.0 source terms 2024-07-13 02:42:17 +00:00
Odoo Translation Bot 431fe6ae2f [I18N] *: export 15.0 source terms 2024-07-08 20:12:05 +00:00
Odoo Translation Bot b345b6ede1 [I18N] Update translation terms from Transifex 2024-06-30 00:50:26 +02:00
Odoo Translation Bot fc8721dda9 [I18N] Update translation terms from Transifex 2024-06-23 00:50:27 +02:00
Soukéina Bojabza 4f7d0500e2 [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#810

X-original-commit: 14ff983da2
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-06-21 09:34:58 +00:00
Odoo Translation Bot 88aaf7037b [I18N] Update translation terms from Transifex 2024-06-16 00:50:37 +02:00
Odoo Online 49ceef1b91 [I18N] Update translation terms from Transifex 2024-06-09 00:50:39 +02:00
Odoo Online bb1b38da23 [I18N] Update translation terms from Transifex 2024-06-02 00:50:37 +02:00
Odoo Online 79deefaacb [I18N] Update translation terms from Transifex 2024-05-26 00:50:30 +02:00
Odoo Online 36abca981d [I18N] Update translation terms from Transifex 2024-05-19 00:50:27 +02:00
Odoo Online bd457ad763 [I18N] Update translation terms from Transifex 2024-05-12 00:50:34 +02:00
Odoo Online 9bf9b0a9d1 [I18N] Update translation terms from Transifex 2024-05-05 00:50:37 +02:00
Odoo Online 4eb86de4c8 [I18N] Update translation terms from Transifex 2024-04-28 00:50:43 +02:00
Odoo Translation Bot 02272cd7c0 [I18N] Update translation terms from Transifex 2024-04-21 00:50:41 +02:00
Odoo Translation Bot 5f58d8ffcc [I18N] Update translation terms from Transifex 2024-04-14 00:50:45 +02:00
Odoo Translation Bot 4e3238e890 [I18N] Update translation terms from Transifex 2024-04-07 00:50:34 +02:00
Odoo Translation Bot 09832134ae [I18N] Update translation terms from Transifex 2024-03-31 00:50:30 +01:00
Odoo Translation Bot fdc593b28e [I18N] Update translation terms from Transifex 2024-03-25 08:11:24 +01:00
Benjamin Vray 05cfe05280 [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#788

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-03-19 11:14:08 +00:00
qsm-odoo 08cb536b02 [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#784

Related: odoo/odoo#157808
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-03-15 18:42:43 +00:00
Arthur Detroux (ard) 45e9374699 [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#779

Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
2024-03-04 15:15:51 +00:00
Soukéina Bojabza f10d814809 [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#756

Related: odoo/odoo#146492
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-02-26 21:22:45 +00:00
qsm-odoo 47b1383ac2 [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#775

X-original-commit: 5778e692f9
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-02-23 18:10:33 +00:00
Romain Derie 4cdd1db20c [IMP] test_themes: add test for fix about primary template generation
See previous commit.

closes odoo/design-themes#755

Related: odoo/odoo#148443
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2024-01-22 19:00:59 +00:00
Benoit Socias 599984eea1 [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

Part-of: odoo/design-themes#755
2024-01-22 19:00:59 +00:00
Benoit Socias 7b27828755 [FIX] theme_*: register 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 adding those templates in a pseudo page `_` in
the `configurator_snippets` entry of each theme's manifest.
In master, the templates will be removed instead.

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

closes odoo/design-themes#751

Related: odoo/odoo#144222
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-12-01 18:14:15 +00:00
Arthur Detroux (ard) bea0f57ca4 [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#745

Related: odoo/odoo#142350
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-11-21 20:06:42 +00:00