Commit Graph

236 Commits

Author SHA1 Message Date
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
Hubert Van de Walle (huvw) 2e263a4f6b [FIX] theme_*: Update homepage tours
Steps to reproduce
==================

Run the `test_02_homepage_tour_every_theme` tour.

Cause of the issue
==================

There is an homepage tour for every theme. Since the owl conversion of
web_tour, none of the custom theme tour were run and for every website,
the default homepage tour was used instead.

Some updates to those themes caused the tours to fail, but since they
weren't run, no one noticed.

The issue has been fixed in community:
https://github.com/odoo/odoo/pull/142350

Solution
========

Since 1aa6700c98,
some h1 tags were replaced by h2.

Since 68c68740bf,
The banner has been replaced by a text cover.

opw-3595512

Part-of: odoo/design-themes#745
2023-11-21 20:06:42 +00:00
Benoit Socias 758e2ab819 [IMP] test_themes: add tests to ensure theme compatibility with website
This commit adds a test that makes sure templates can be rendered on
all themes and that they neither contain duplicate classes nor
contradicting ones.

Covered templates:
- snippet blocks
- configurator snippet customizations
- new page template snippet customizations

task-3562147

closes odoo/design-themes#731

Related: odoo/odoo#139572
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-11-04 00:38:17 +00:00
Benoit Socias 9984745d3d [FIX] theme_*: remove duplicate and conflicting classes from new pages
Given that the duplicate and conflicting classes resolved by the
previous commit did still exist at the time new page templates were
introduced in [1], they could not be avoided for new page templates
snippets.

This commit removes those from the new page templates snippets now that
they have been removed from the base snippets.

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

task-3562147

Part-of: odoo/design-themes#731
2023-11-04 00:38:17 +00:00
Benoit Socias f3da06dc68 [FIX] theme_*: remove duplicate and conflicting classes
When default snippets have been updated to rely on color presets ([1]),
some themes were not adapted accordingly.
This also happened whenever paddings of base blocks were modified.
Because of this there are elements in themes for which some classes are
applied several times, and some where classes are not removed before
adding a contradicting one.

This commit adjusts the classes so that themes neither:
- produce snippets with duplicated classes
- produce snippets with contradicting classes (e.g. two different
bottom paddings on the same element)

This commit also fixes a typo from [2] which was the source of
duplicate classes.

[1]: https://github.com/odoo/odoo/commit/5953c4df6b9c08519f64a65c1cf5d5558d59f7d4
[2]: https://github.com/odoo/design-themes/commit/299d504df31bf179775eec1d37e71605c3637460#diff-86c142838104de06e89f629c51cf791464538dc8899e6a3f00c24f69638db409R34

task-3562147

Part-of: odoo/design-themes#731
2023-11-04 00:38:17 +00:00
Benoit Socias cd421c73ce [FIX] theme_bewise: replace "diplomatic" by "academic"
This commit rephrases one of the quotes block's sentences to use the
word "academic" instead of "diplomatic".

closes odoo/design-themes#742

X-original-commit: 5534cda1bc
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-10-30 20:41:40 +00:00
Louis Wicket (wil) 5cb3dbe8b4 [I18N] theme_*: export source terms
closes odoo/design-themes#735

Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2023-10-28 01:18:31 +00:00
Xavier-Do 102270967b [IMP] test_themes: adapt asset url
see companion pr odoo/odoo#131353

closes odoo/design-themes#730

Related: odoo/enterprise#47313
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2023-10-27 11:34:54 +00:00
Christophe Monniez e20d59af6b [REL] 17.0 2023-10-26 19:39:29 +00:00
Benoit Socias 05870d0f4e [FIX] theme_*: fix some configurator templates
Since [1] when background shapes were extracted to configurator-specific
templates, some xpath were broken.
By separating the definition of the shape from the definition of the
base snippet theme customization, changes between `container`,
`container-fluid` and `o_container_small` are already applied before
taking the shape definition into account.

This commit fixes the templates which have this issue.

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

task-3555325

closes odoo/design-themes#732

Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-10-25 19:37:30 +00:00
Brieuc-brd 398f53bf01 [IMP] theme_*: adapt headers
Review header templates configuration for some themes.

task-3060986

closes odoo/design-themes#651

Related: odoo/odoo#119650
Related: odoo/upgrade#5214
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-10-25 11:37:10 +00:00
qsm-odoo 8e2a7ba75f [IMP] *: replace centered_logo by search header
See community commit for details.

task-3060986

Part-of: odoo/design-themes#651
2023-10-25 11:37:10 +00:00
qsm-odoo 060c0421c7 [IMP] *: replace contact by sales_three header
See community commit for details.

task-3060986

Part-of: odoo/design-themes#651
2023-10-25 11:37:10 +00:00
qsm-odoo 15bb075d84 [IMP] *: replace mobile menu feature by new mobile layout
See community commit for details.

task-3060986

Part-of: odoo/design-themes#651
2023-10-25 11:37:10 +00:00
Benoit Socias 796da67b29 [IMP] theme_*: restore base snippet shapes that do not connect blocks
In [1] all shapes were moved from the base snippet to the specific
configurator snippet. This was a bit overkill.

This commit reverts this partially so that only shapes that connect
with each other are specific to the configurator, but "intra-block"
shapes are restored onto the base snippet.
The "New page from template" snippets are adapted accordingly in order
to produce the same output as before this commit.

Restored shapes are: (label (image))
- Origins: 12 (18)
- Blob: 11 (11)
- Airy: 03 (03_001), 04 (04_001), 07 (07), 10 (10), 11 (11), 14 (14)
- Zigs: 01 (01_001), 02 (02_001)
- Wavy: 04 (10), 15 (11)
- Blocks: 02 (01_001)
- Rainy: 03 (06), 05 (10), 09 (08_001), 10 (09_001)
- Floats: all

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

task-3555325

closes odoo/design-themes#726

Related: odoo/odoo#138748
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-10-25 09:56:42 +00:00
Guillaume (gdi) 1aa6700c98 [IMP] theme_*: prevent abuse of h1 and use font size classes
See related community PR.

task-1958098

closes odoo/design-themes#682

Related: odoo/enterprise#44986
Related: odoo/odoo#129791
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-10-19 19:08:09 +00:00
Romain Derie 8b45a6dc29 [FIX] theme_*: adapt .pot file to recent commit changing wording
See commit [1], it changed wording but didn't adapt .pot files.
As that commit was targetting master at first, .pot where not needed.
When changing the target to odoo 16, we forgot to adapt the .pot.

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

closes odoo/design-themes#729

X-original-commit: 5f3599feda
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-10-18 07:51:46 +00:00
Romain Derie 9c23ffc98d [IMP] themes_*: rewrite some messages and fix typos
Themes translation in Odoo 16 have been lost, they were not exported on
Transifex anymore (bug).

We just added back the repository on it, and our internal translators
are working on those translations.

They found some typos and bad wording which are fixed here.

Technically, note that we need the themes fully translated for the
chatGPT integration coming in website configurator.
Indeed, if a theme is not (almost fully) translated, it won't be using
chatGPT for text replacement.
This is because if we ask chatGPT to do text replacement and translation
at the same time, it just provides bad results.
See https://github.com/odoo/odoo/pull/137703

closes odoo/design-themes#725

X-original-commit: 7cdb6d2ab7
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-10-18 07:51:44 +00:00