Commit Graph

205 Commits

Author SHA1 Message Date
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
Hubert Van de Walle (huvw) 3b94657c59 [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

X-original-commit: 2e263a4f6b
Part-of: odoo/design-themes#746
2023-11-27 13:31:03 +00:00
Louis Wicket (wil) 936f086d9a [IMP] *: remove obsolete entries from po/pot files
Remove all occurrences of python-format from po/pot files.

Task-3599456.

closes odoo/design-themes#749

Related: odoo/enterprise#51147
Related: odoo/odoo#142878
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2023-11-24 19:36:09 +00:00
Benoit Socias ee58e3eb6c [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#744

X-original-commit: 758e2ab819
Related: odoo/odoo#141074
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-11-05 04:52:43 +00:00
Benoit Socias 1a96421764 [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

X-original-commit: 9984745d3d
Part-of: odoo/design-themes#744
2023-11-05 04:52:43 +00:00
Benoit Socias 76e9cbcdb6 [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

X-original-commit: f3da06dc68
Part-of: odoo/design-themes#744
2023-11-05 04:52:43 +00:00
Benoit Socias de9d56190e [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#743

X-original-commit: 5534cda1bc
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-10-30 21:55:43 +00:00
Louis Wicket (wil) 46e24d47b6 [I18N] theme_*: export source terms
closes odoo/design-themes#736

X-original-commit: 5cb3dbe8b4
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2023-10-30 17:10:48 +00:00
Xavier-Do 6d5a448450 [IMP] test_themes: adapt asset url
see companion pr odoo/odoo#131353

closes odoo/design-themes#734

X-original-commit: 102270967b
Related: odoo/odoo#140124
Related: odoo/enterprise#49743
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2023-10-27 15:05:26 +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
Guillaume (gdi) 97aaba993e [REM] theme_monglia: remove useless scss
This commit removes the scss rule that makes the heading in the numbers
block in uppercase. The rule was not working and is not very useful so
this commit simply removes it.

It was not working because the XML file was not imported anymore since
commit [1].
It was introduced with commit [2].

We don't want to add this file and we prefer to remove it since the
uppercase text-transform property is not builder friendly: you can't
unset it.
And we don't want to remove this file in stable versions, people might
have referenced the XML or CSS file.

[1]: https://github.com/odoo/design-themes-old/commit/14aad38f47a6d00f0d53e94debb8765dbbd81791#diff-5bc126dc3e67585d92c1ed55e9fe3093586830f492920be8a041b7c7bab70065L14
[2]: https://github.com/odoo/design-themes-old/commit/69b99559275cfcfcd2b7f5d4e7667de44d9672b3

task-3469717

closes odoo/design-themes#688

Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-10-16 18:21:26 +00:00
Morgane (morm) 80cbee66f6 [IMP] theme_*: adapt New Page template designs for themes
This commit customizes all New Page template designs for every single
theme.

The changes are organized as follow:

When the used blocks are not the default ones:
- the new sequence of block is listed in the `new_page_templates`
manifest entry.
- the blocks are updated in the `new_page_template_sections_..._...`
XML templates accordingly.

After the potential block sequence updates, the `new_page_template.xml`
then first contains the general customization of blocks (those that
apply across all new page templates) then the customization for each
category of page.

Customizations for a specific page are directly below category-wide
customizations of the given block when both exist.

task-3381714

closes odoo/design-themes#692

Related: odoo/odoo#126719
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Co-authored-by: Benoit Socias <bso@odoo.com>
Co-authored-by: Arthur Detroux (ard) <ard@odoo.com>
2023-10-14 03:27:02 +00:00
Benoit Socias 230ded2759 [REF] theme_*: rename snippets_list to configurator_snippets
This commit renames the `snippets_list` manifest key to
`configurator_snippets` across all themes.

task-3381714

Part-of: odoo/design-themes#692
2023-10-14 03:27:02 +00:00
Benoit Socias d206c11972 [IMP] theme_*: extract shapes to configurator-dedicated templates
This commit extracts the pre-defined section shapes from blocks into
templates that are dedicated to being used by the configurator.

For blocks that are not used in configurator pages, the configurator
templates have not been created.

task-3381714

Part-of: odoo/design-themes#692
2023-10-14 03:27:02 +00:00
Martin Trigaux f4030e3815 [I18N] remove leftover modules
closes odoo/design-themes#716

X-original-commit: 0102a82538
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2023-10-12 17:20:39 +00:00
Guillaume (gdi) 6556a8cfff [IMP] theme_monglia: use BS mixin to have responsive font sizes
This commit permits to have responsive font sizes on all the Odoo
frontend. It is based on the Bootstrap mixin `font-size` which
calculates the font size based on the viewport width.

task-1958098

closes odoo/design-themes#673

Related: odoo/enterprise#44578
Related: odoo/odoo#129469
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-10-08 22:12:11 +00:00
Brieuc-brd 5b119dea5b [IMP] *: replace outdated screenshots
*: theme_anelusia, theme_cobalt, theme_yes

task-3097005

closes odoo/design-themes#687

Related: odoo/odoo#120302
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-10-08 10:45:47 +00:00
Brieuc-brd 78a379d720 [IMP] theme_zap: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_zap have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd b8d34237b3 [IMP] theme_yes: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_yes have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd 9d5143a1e2 [IMP] theme_vehicle: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_vehicle have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd bd66ff093a [IMP] theme_treehouse: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_treehouse have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd ed0853d449 [IMP] theme_real_estate: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_real_estate have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd 4942536c24 [IMP] theme_paptic: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_paptic have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd 54e01cb94a [IMP] theme_orchid: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_orchid have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd 916cf81d02 [IMP] theme_odoo_experts: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_odoo_experts have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd 318fd652f5 [IMP] theme_notes: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_notes have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd 1c1599bc7d [IMP] theme_nano: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_nano have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd 153c819f9c [IMP] theme_monglia: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_monglia have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd 659d5b642c [IMP] theme_loftspace: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_loftspace have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd f3b1562cbd [IMP] theme_kiddo: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_kiddo have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd 5b8e14b83d [IMP] theme_kea: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_kea have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd 637c5bf62a [IMP] theme_graphene: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_graphene have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd b2a128f8af [IMP] theme_enark: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_enark have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd b25612829a [IMP] theme_cobalt: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_cobalt have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd 1e802140ef [IMP] theme_clean: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_clean have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd a9b51b8a2f [IMP] theme_buzzy: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_buzzy have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd bc94215f32 [IMP] theme_bookstore: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_bookstore have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd 25c98931f9 [IMP] theme_bistro: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_bistro have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd a8287d377e [IMP] theme_bewise: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_bewise have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd 6e3b30d3f9 [IMP] theme_beauty: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_beauty have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd be90e2acbe [IMP] theme_aviato: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_aviato have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00