Commit Graph

187 Commits

Author SHA1 Message Date
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
Brieuc-brd d337774af7 [IMP] theme_avantgarde: adapt s_banner
Since the redesign of the original banner snippet, the customizations
made in theme_avantgarde have had to be adapted.

task-3097005

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

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd 68c68740bf [IMP] theme_anelusia: replace banner with text_cover
The new text_cover snippet introduced in commit [1] reproduces the same
result as the Anelusia banner. It makes more sense to use now this new
snippet and get rid of the banner customizations.

This commit removes banner customizations in favor of text_cover
snippet.

As the text_cover snippet is not yet managed in the svg preview, this
snippet uses the banner image.

[1]: https://github.com/odoo/odoo/commit/5ac340b1b27c9527463e2eed65fe2e7768b36702

task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Brieuc-brd e3248ddfda [FIX] theme_anelusia: fix contrast issue in the comparison snippet
task-3097005

Part-of: odoo/design-themes#687
2023-10-08 10:45:47 +00:00
Martin Trigaux c5a161385d [I18N] *: export 16.0 translations
closes odoo/design-themes#708

X-original-commit: c3d2f03db6
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2023-10-05 15:36:20 +00:00
Jorge Pinna Puissant 0ecf1636eb [REF] *: remove owl from linter's accepted global variables
Before this commit, owl was in the linter's accepted global variables.
This allowed  direct access to owl global object.

For instance, to use xml from owl, you could do :
`const { xml } = owl;`
or you could use it directly:
`owl.xml`

Now, owl is not accepted on linter's global variables anymore, so to
import xml, now you need to use a proper import:

`import { xml } from "@odoo/owl";`

task-id 3498859

closes odoo/design-themes#709

Related: odoo/odoo#137517
Related: odoo/enterprise#48364
Signed-off-by: Samuel Degueldre (sad) <sad@odoo.com>
2023-10-05 10:21:55 +00:00
=?UTF-8?q?Beno=C3=AEt=20V=C3=A9zina?= 1f7f82b38e [FIX] theme_avantgarde: properly define 3rd 3-cols image for previews
Since [1], the manifest is not well formed: it contains a duplicated key

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

closes odoo/design-themes#702

X-original-commit: a26fec8761
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-09-22 15:06:05 +00:00
Pierre Paridans 331b8a3a06 [IMP] theme_common: remove PublicWidget fix for deprecated old apple devices
Introduced in odoo/design-themes-old@a3dbaf1576,
this Bootstrap's Collapse fix was targetting very old Apple devices.

task-3439226

closes odoo/design-themes#694

Related: odoo/odoo#134020
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2023-09-06 11:50:52 +00:00
Brieuc-brd 458919e515 [FIX] theme_anelusia: s_product_list broken img
Since PR #641, the url of item 4 was broken.

This commit fixes this issue.

closes odoo/design-themes#691

X-original-commit: 684a824668
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-08-21 19:57:20 +02:00
Jorge Pinna Puissant f7f7016efb [REF] test_themes: remove owl="1" from the templates
As all the templates are now imported in the owl app, there is not need
anymore to specify the owl="1" attribute in the templates.

Part of task~3443861

closes odoo/design-themes#686

Related: odoo/enterprise#45020
Related: odoo/odoo#130467
Signed-off-by: Samuel Degueldre (sad) <sad@odoo.com>
2023-08-11 14:32:07 +02:00
Michael (mcm) feed58b94b [REF] test_themes: remove legacy patch
This commit removes the use of legacy patch by using the modern patch.

closes odoo/design-themes#685

Related: odoo/enterprise#45271
Related: odoo/odoo#130867
Signed-off-by: Samuel Degueldre (sad) <sad@odoo.com>
2023-08-07 10:58:41 +02:00
Robin Lejeune (role) a86d9f73df [FIX] theme_*: remove mb-2 class on orphan buttons
*: anelusia, artists, aviato, graphene, kiddo, loftspace, monglia,
notes, odoo_experts, paptic, test_custo, yes

The community PR [125824] introduces an automatic check on buttons to
add the `mb-2` class when several buttons follow each other, so that
they have space to breathe when split on multiple lines.
For consistency, this commit therefore removes most `mb-2` occurrences
on buttons within themes as long as they are alone on their line, but
keeps or adds the class when several buttons are next to each other.

[125824]: https://github.com/odoo/odoo/pull/125824

task-3369604

closes odoo/design-themes#680

Related: odoo/odoo#125824
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
2023-08-03 19:30:56 +02:00
Arthur Detroux (ard) 6a50b911fe [IMP] website: warn users when a website has no domain
This commit disables the warning (introduced by the community commit)
when test-themes is installed, as a lot of websites are created and are
not necessary when testing the different themes.

-- ORIGINAL COMMIT MESSAGE --

Prior to this commit, if a website does not have a domain, nothing tells
the user that this is a misconfiguration that can lead to broken
behaviours. For example, here are the steps to reproduce:

- Have two website (X and Y)
- Website Y does not have a domain
- Tab 1 has Website X selected
- User opens a new tab
- Tab 2 has Website X selected as well
- User switches tab 2 to Website Y
- No redirection happens
- User switches back to tab 1
- User opens the HTML editor for Website X
- Website X content is displayed
- User saves
- Content is saved on Website Y

This is pretty hard to fix as a lot of the python flow for Website uses
`get_current_website` which will uses the session's "force_website_id"
in priority.

In any case, we consider having multiple websites sharing the same
domain (or having no domains at all) a misconfiguration. Therefore, we
should warn the user of so.

This commit adds a tooltip on the website switcher for websites that do
not have a domain set. It also adds a notification recommending users
close other tabs if they switch website.

opw-3374214

closes odoo/design-themes#684

X-original-commit: 2e3188e1e1
Related: odoo/odoo#130448
Signed-off-by: Arthur Detroux (ard) <ard@odoo.com>
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-08-03 10:43:08 +02:00
Pierre Pulinckx (pipu) 94b3042634 [REF] website_*: Change registerTours of tour_utils
As steps are encapsuled in an arrow function from
69a5d8e3ce47238 for steps tour definition to avoid
direct Markup(_t()) interpretation, the same is done
for registerWebsitePreviewTour() of
"odoo/addons/website/static/src/js/tours/tour_utils.js"
in this commit.

This is done in anticipation of the use of
_t() (import from @web/core/l10n/translation) with
registerWebsitePreviewTour().

task-3292454

closes odoo/design-themes#678

Related: odoo/odoo#130248
Signed-off-by: Luca Vitali (luvi) <luvi@odoo.com>
2023-08-02 13:20:26 +02:00
Bastien PIERRE b9d48ebe86 [IMP] *: Remove alias in JS files
Rename all imports with alias old system to the new js module system
Task ID: 3266759

closes odoo/design-themes#671

Related: odoo/odoo#127414
Related: odoo/enterprise#43716
Signed-off-by: Bastien Pierre (ipb) <ipb@odoo.com>
2023-07-27 11:58:31 +02:00
Benoit Socias ab791fab67 [IMP] theme_cobalt, theme_paptic: adapt to new theme options
This commit adapt themes to rely on the new theme option
`headings-line-height`.

See https://github.com/odoo/odoo/pull/111621.

task-3140991

closes odoo/design-themes#633

Related: odoo/odoo#111621
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-07-17 10:40:26 +02:00
Robin Lejeune (role) cc958193fb [FIX] theme_test_custo: add test for the mobile/desktop theme preview
With the Milk redesign in [1], the possibility to use the mobile/desktop
switcher on a theme preview to see how it behaves/displays on those
devices didn't work anymore.

It has been fixed in [2], but in order to prevent future breaks, this
commit tests this functionality.

task-3355253

[1]: https://github.com/odoo/odoo/commit/caef16ee4e5351142ef04f02798999ccb38a56bc
[2]: https://github.com/odoo/odoo/commit/9445f61bcaee88bc6ac2fc373d7eca4e4b38c154

closes odoo/design-themes#670

X-original-commit: ed2fdd45f2
Related: odoo/odoo#127911
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-07-10 18:16:28 +02:00
Victor Feyens c338c17bf7 [FIX] *: clean useless content in manifests
Make sure the linting test added in community do not fail.

closes odoo/design-themes#669

X-original-commit: f78f8df161
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-07-07 10:52:58 +02:00