Commit Graph

110 Commits

Author SHA1 Message Date
Romain Derie bc8699ce48 [FIX] theme_*: fix linter error for runbot build
There is a linter error in the modified files of this PR about `require`
not defined.
It's actually not really a problem as those files are transcompiled from
ES6 module to odoo module, injecting `require` before the file is
actually used/read by the browser, at which point no issue actually
arise.

Those linter error were introduced with PR [1] in Odoo 15 but were fix
in Odoo 16 with commit [2] (which should have arguably be done in Odoo
15).

[1]: https://github.com/odoo/design-themes/pull/500
[2]: https://github.com/odoo/design-themes/commit/dc2f5112022b5f987ed418e04b5e15c93dc7a731

closes odoo/design-themes#748

X-original-commit: 08e5adc265
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-11-23 16:47:00 +00:00
=?UTF-8?q?Beno=C3=AEt=20V=C3=A9zina?= 1d24a783b2 [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#696

X-original-commit: a26fec8761
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-09-22 15:00:51 +00:00
can-odoo d8db921440 [IMP] theme_yes: change description of masonry snippet
Introduced with [1], same description for Caterers and Venues block.

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

task-2994239

closes odoo/design-themes#642

X-original-commit: 56a04f327b
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-04-11 13:45:09 +02:00
Soukéina Bojabza cb38d62827 [FIX] theme_clean: remove the content class from the Carousel rows
In [1], in master, the `content` class is removed from the elements
with the `row` class in the Carousel snippet. This commit does the same
for the extension of Carousel in the "Clean" theme, to be consistent
with these changes.

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

task-3011192

closes odoo/design-themes#625

X-original-commit: 6232ec4af4
Related: odoo/odoo#108626
Signed-off-by: Vray Benjamin (bvr) <bvr@odoo.com>
Signed-off-by: Bojabza Soukéina (sobo) <sobo@odoo.com>
2022-12-28 09:30:19 +01:00
Arthur Detroux (ard) d295c9fd46 [FIX] theme_kea: fix the data of shape on s_picture in KEA theme
Commit [1] refreshed the design of the KEA theme but unfortunately
introduced the wrong path to a shape on the s_picture snippet.

This used to cause a traceback but [2] fixed it. However, it is still
worth correcting the path so that shapes automatically chain under the
s_picture snippet of that theme.

To do so, a simple check is added when the option computes the next
shape, and looks for the broken path, if it finds it, it corrects it.

Steps to reproduce:
- Use the KEA theme
- Drop the "Picture" snippet
- Drop the text snippet under it
- Enable the background shape option for the text snippet
- The first shape is selected instead of the next one in the series.

To fix properly in master of course.

[1]: https://github.com/odoo/design-themes/commit/88b81d41dadbfaad5d0b36ba2f1c595e309438ba
[2]: https://github.com/odoo/odoo/commit/e985f8ef7a358c5aae9245267e18e65ea8383400

opw-3082292

closes odoo/design-themes#620

X-original-commit: f3bd5ab20b
Related: odoo/odoo#108433
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-12-21 17:08:34 +01:00
Romain Derie 64dec63f29 [FIX] test_themes: call post_copy again on test_themes' themes
Since [1], the themes installed in the `_post_init` hook of test_themes
would not go through the `_post_copy()` anymore.
It is not a big deal as this module purpose is to ease our tests and
quickly being able to navigate through themes when we need to, but still
this is something that need to be fixed as otherwise the themes would
not really reflect how they look like.

Typically, go to the Odoo Experts theme, which is supposed to have the
"Contact" header template, it will not have that header layout.

[1]: https://github.com/odoo/odoo/commit/b8a24efa71daea1f96465b780f4f0e384ce74703

closes odoo/design-themes#612

X-original-commit: fea847977d
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-10-28 15:28:39 +02:00
can-odoo 0dda669c82 [FIX] theme_bookstore: correct shape data JSON value
Since it was introduced with [1], the bookstore `Price` snippet couldn't
be clicked on.
Indeed, a typo/wrong format inserted inside a `data-oe-shape-data` xpath
was making it crash due to invalid JSON format.

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

task-3002630

closes odoo/design-themes#606

X-original-commit: d9bb32b273
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-10-17 16:36:45 +02:00
Romain Derie 0fc28318f5 [FIX] test_themes: fix theme_upgrade standalone test
Ripple option is now an ir.asset, not an ir.ui.view anymore, see [1].

[1]: https://github.com/odoo/odoo/commit/9f56357cc1f4a7b8606ef4d5fd431fc396bdf1e8

closes odoo/design-themes#583

X-original-commit: 96e713a14f
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-08-30 17:34:46 +02:00
Carlos Valverde 0049f51b7a [FIX] theme_avantgarde: fix color variable in some snippets
This commit fixes the previously hardcoded color customisations in theme
Avantgarde's snippets, by using proper color variables, which allow the
snippet customisations to change dynamically.

While theoretically unstable (changing views), this was judged safe
enough for 15.0 (it would require someone to xpath a theme.ir.ui.view in
this specific theme, targeting an inline style to break; and it does not
change the current websites at all (just new dropped snippets)).

closes odoo/design-themes#576

X-original-commit: 65baa9bb4a
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-07-01 15:08:40 +02:00
Romain Derie 7c321dab42 [IMP] test_themes: add a test for the _post_copy() community fix
Now, `_post_copy()` is only called when the module is installed for the
first time on a website, not when the module is updated.

See counterpart commit in community for more details.

opw-2824045

closes odoo/design-themes#568

X-original-commit: 0e324061d1
Related: odoo/odoo#93028
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-06-08 12:27:24 +02:00
xlu-odoo 74cf767c04 [FIX] theme_*: use correct header SCSS variable
This commit fixes the "Contact" header and the "default" header that
were not displaying correctly (in related themes) in the web editor
panel as expected.

task-2713578

closes odoo/design-themes#556

X-original-commit: f403f252bc
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-04-05 08:54:18 +02:00
Christophe Monniez 86aa8fa88f [REL] saas-15.2 2022-02-01 14:13:54 +01:00
Romain Derie cf5197e544 [FIX] theme_*: enable footer/header template correctly
See [1], `enable_view()` is now in charge of disabling the already possibly
existing template header (and/or footer).
Disabling `website.template_header_default` was not enough, any of the other
template could have been selected by the user before updating the theme.

Note that when installing a theme the first time on a website, the error won't
occur as `_reset_default_config()` will be called through `_theme_remove()`.

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

Fixes https://github.com/odoo/upgrade/pull/3048
task-2593407
opw-2680866
opw-2685951
opw-2685124
opw-2679040

closes odoo/design-themes#548

X-original-commit: 9a289ea574
Related: odoo/odoo#81953
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2021-12-28 11:47:07 +00:00
Benjamin Vray b4e6d51f56 [FIX] theme_*: fix the activation and deactivation of assets
Before this commit:

- The assets were not enabled or disabled when installing themes because
we searched for assets with the "key" field instead of the "name" field.

- The "Ripple Effect" was not correctly installed on several themes.
Because the variable and the assets were not both activated. Even if the
variable is not used, it is still necessary for the proper functioning
of the option (e.g. _computeWidgetState).

task-2686370

closes odoo/design-themes#546

X-original-commit: 77b2b97f3d
Related: odoo/odoo#81833
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-12-23 15:07:08 +00:00
xlu-odoo bcb74695ed [FIX] theme_*: fix svg previews readability on safari
In Safari (14+) the CSS workaround to make block "readable" over any bg
is broken. By replacing the current CSS workaround by an appropriate
SVG filter in each themes svg, the problem will be fixed.
This commit will add the svg filter.

task-2667028

closes odoo/design-themes#538

X-original-commit: 545cf002ea
Related: odoo/odoo#81190
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-12-14 10:54:44 +00:00
Martin Trigaux 99a3c80a00 [I18N] *: export source terms
closes odoo/design-themes#543

X-original-commit: 7d05d98ab3
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-12-13 13:17:53 +00:00
qsm-odoo 751cdc54e6 [FIX] test_themes: add a test which goes over all theme tours
This is a backport of [1] which at the same time finally enables the
test to be able to test all theme tours. Notice that the tours should
be improved so that each step properly checks that the previous step
actually had an effect (as those tours are normally made to display to
the user and were not designed for testing). However, this is already
really useful as only checking if *entering* edit mode in each theme
does not crash is already covering most issues that can be created when
designing a theme at the moment.

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

closes odoo/design-themes#535

X-original-commit: 208f6134a6
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-12-09 10:27:10 +00:00
Brieuc-brd ae199ad589 [IMP] theme_kiddo: redesign of the theme
This commit introduces a redesign of the Kiddo theme.
It also moves 6 svg icons from the "static/src/img/snippets/" to
"static/shapes" to allow the use of the dynamic colors in the Web
Editor.

task-2687297

closes odoo/design-themes#529

Related: odoo/odoo#80658
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-12-07 11:00:49 +00:00
xlu-odoo 0fc0d85c2c [FIX] theme_vehicle: fix btn-lg size
This commit removes the modified size for large (lg) buttons. They were
far too big. It also slightly changes the medium buttons accordingly.
This is not supposed to change anymore in stable versions but in this
case the big buttons were causing issues in eCommerce pages.

closes odoo/design-themes#528

X-original-commit: 65aefeb3e9
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-11-10 12:12:05 +00:00
qsm-odoo 66aa5f3080 [FIX] *: increase text contrast for cover snippet
*: theme_kea, theme_orchid, theme_nano

The theme customization of the cover snippet was not perfect for those
themes. In particular for the Kea theme where the text was not forced to
white anymore (leaving the default black) and the background filter was
pratically removed, leaving the snippet's text properly contrast with
light brackgrounds but be barely visible with dark backgrounds.

Unfortunately, the Kea theme is the most used currently, alongside the
"Software company" industry... which uses a dark background for the
cover image.

closes odoo/design-themes#527

X-original-commit: 1b4b65ff81
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-11-08 09:25:50 +00:00
Benjamin Vray b9db7c0e73 [FIX] theme_yes: prevent scroll button editing
Before this commit, it was possible to edit the scroll button of the
cover snippet in Yes theme.

task-2656662

closes odoo/design-themes#523

X-original-commit: 9e62a84326
Related: odoo/odoo#78637
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-10-19 15:59:09 +00:00
qsm-odoo 6e2840ee64 [FIX] theme_nano: remove breaking container padding removals
Removing the container padding in some cases may be fine but cannot
be done because would create horizontal scrollbars in full-width mode
or simply on mobile devices.

To further improve with task-2241779

closes odoo/design-themes#515

X-original-commit: 2ed70c99c9
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-10-05 14:17:53 +00:00
stefanorigano (SRI) ad1bac9096 [REF] theme_*: inject theme's preferred palette into ui
This commit injects for each theme a "preferred" palette into the
website's UI palette list ("Theme" tab).
It also removes '$o-palette-priority-prefix' overrides, letting website
handling the palettes order.

task-2656337

closes odoo/design-themes#514

X-original-commit: 0539787e23
Related: odoo/odoo#77857
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-10-05 14:17:51 +00:00
Sébastien Mottet (oms) 57e1e285b8 [FIX] theme_*: move snippet lists from iap to design-theme repo
Previously the configurator retrieved the snippet lists
needed to build the website pages from IAP. These lists
have been put in the theme manifests and can be accessed
from it.

Odoo PR: odoo/odoo#77243
IAP PR: odoo/iap-apps#411

closes odoo/design-themes#510

X-original-commit: 285d413a44
Related: odoo/odoo#77550
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-09-30 17:12:08 +00:00
qsm-odoo a6529ea67b [FIX] *: remove yiq threshold overrides
Many themes were overriding the yiq threshold, thus having an impact
on which of the dark or light text is used over a particuler background
by default. This is a tricky value to change and only made some sense
when the Odoo themes were defining their own color palettes. Now that
all palettes can be used in all themes, it makes no sense to change the
yiq threshold as it induces inconsistent behavior for a same palette
used in different themes. Besides, leaving the value by default is most
of the time what you want and when it is not entirely correct, the user
has full control over the color combination text colors anyway.

task-2655730

closes odoo/design-themes#507

X-original-commit: f244035809
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-28 09:29:25 +00:00
Design 7a9597405b [FIX] theme_*: move svg preview from iap to design-themes repo
closes odoo/design-themes#503

X-original-commit: f2453983a7
Related: odoo/odoo#77199
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-27 07:12:05 +00:00
Brieuc-brd 8175b84b8f [ADD] theme_buzzy: add new theme buzzy
task-2582420

closes odoo/design-themes#501

X-original-commit: b48fe33a0b
Related: odoo/odoo#77123
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-24 11:09:54 +00:00
xlu-odoo 32053e38d9 [ADD] theme_aviato: add new theme aviato
task-2589967

X-original-commit: 18d1f0a532
Part-of: odoo/design-themes#501
2021-09-24 11:09:53 +00:00
Cocographique 028c13f213 [REF] theme_zap: remove outdated theme description
task-2545207

X-original-commit: 041922b9ee
Part-of: odoo/design-themes#501
2021-09-24 11:09:53 +00:00
Cocographique c4ca4397ae [IMP] theme_zap: update the theme
This commit updates the theme to improve the design with new colors, new
pictures and new snippet customizations.

task-2545207

X-original-commit: bbdfbba0d5
Part-of: odoo/design-themes#501
2021-09-24 11:09:53 +00:00
Cocographique 6d999cfdc6 [REF] theme_yes: remove outdated theme description
task-2555035

X-original-commit: 3384ab2031
Part-of: odoo/design-themes#501
2021-09-24 11:09:53 +00:00
Elisabeth Dickinson 299d504df3 [IMP] theme_yes: update the theme
This commit updates the theme to improve the design with new colors, new
pictures and new snippet customizations.

task-2555035

X-original-commit: 2a2da47270
Part-of: odoo/design-themes#501
2021-09-24 11:09:52 +00:00
qsm-odoo e3e8f6796d [REF] theme_vehicle: normalize XML indentation
X-original-commit: de26d7f6a0
Part-of: odoo/design-themes#501
2021-09-24 11:09:52 +00:00
Cocographique d7fc7fef7b [REF] theme_treehouse: remove outdated theme description
task-2542281

X-original-commit: 33d50fdea5
Part-of: odoo/design-themes#501
2021-09-24 11:09:52 +00:00
Cocographique 0cdb391954 [IMP] theme_treehouse: update the theme
This commit updates the theme to improve the design with new colors, new
pictures and new snippet customizations.

task-2542281

X-original-commit: e18a0ff128
Part-of: odoo/design-themes#501
2021-09-24 11:09:52 +00:00
xlu-odoo 045072d101 [REF] theme_real_estate: remove outdated theme description
task-2551125

X-original-commit: 4946a528fd
Part-of: odoo/design-themes#501
2021-09-24 11:09:51 +00:00
xlu-odoo b10cfcc82b [IMP] theme_real_estate: update the theme
This commit updates the theme to improve the design with new colors, new
pictures and new snippet customizations.

task-2551125

X-original-commit: 42638dcf22
Part-of: odoo/design-themes#501
2021-09-24 11:09:51 +00:00
qsm-odoo 08e5a8a968 [REF] theme_paptic: normalize XML indentation
X-original-commit: bef2fc761f
Part-of: odoo/design-themes#501
2021-09-24 11:09:51 +00:00
Brieuc-brd a443f448bc [REF] theme_orchid: remove outdated theme description
task-2619127

X-original-commit: bb032e7011
Part-of: odoo/design-themes#501
2021-09-24 11:09:51 +00:00
Brieuc-brd cc5fa4de16 [IMP] theme_orchid: update the theme
This commit updates the theme to improve the design with new colors, new
pictures and new snippet customizations.

task-2619127

X-original-commit: 40e8281717
Part-of: odoo/design-themes#501
2021-09-24 11:09:50 +00:00
Brieuc-brd ccc6f5a889 [REF] theme_odoo_experts: remove outdated theme description
task-2585389

X-original-commit: 025c8a3cd3
Part-of: odoo/design-themes#501
2021-09-24 11:09:50 +00:00
Brieuc-brd c2bf1cf76e [IMP] theme_odoo_experts: update the theme
This commit updates the theme to improve the design with new colors, new
pictures and new snippet customizations.

task-2585389

X-original-commit: b2ab9eadd5
Part-of: odoo/design-themes#501
2021-09-24 11:09:50 +00:00
Brieuc-brd decfd19652 [REF] theme_notes: remove outdated theme description
task-2590454

X-original-commit: 3ba172b8bd
Part-of: odoo/design-themes#501
2021-09-24 11:09:50 +00:00
Brieuc-brd 620da7cfa4 [IMP] theme_notes: update the theme
This commit updates the theme to improve the design with new colors, new
pictures and new snippet customizations.

task-2590454

X-original-commit: 352692754c
Part-of: odoo/design-themes#501
2021-09-24 11:09:49 +00:00
Cocographique 9b6c4b344a [REF] theme_nano: remove outdated theme description
task-2590182

X-original-commit: 5ed3aa0044
Part-of: odoo/design-themes#501
2021-09-24 11:09:49 +00:00
Cocographique c4287ba0d4 [IMP] theme_nano: update the theme
This commit updates the theme to improve the design with new colors, new
pictures and new snippet customizations.

task-2590182

X-original-commit: 036df33043
Part-of: odoo/design-themes#501
2021-09-24 11:09:49 +00:00
xlu-odoo 158003bad2 [REF] theme_monglia: remove outdated theme description
task-2619534

X-original-commit: 24da809ab0
Part-of: odoo/design-themes#501
2021-09-24 11:09:48 +00:00
xlu-odoo 34fe0fa07f [IMP] theme_monglia: update the theme
This commit updates the theme to improve the design with new colors, new
pictures and new snippet customizations.

task-2619534

X-original-commit: a27996e809
Part-of: odoo/design-themes#501
2021-09-24 11:09:48 +00:00
Brieuc-brd a2b1aa7c14 [REF] theme_loftspace: remove outdated theme description
task-2557927

X-original-commit: 284a5e383c
Part-of: odoo/design-themes#501
2021-09-24 11:09:48 +00:00
Brieuc-brd 0fcc823bed [IMP] theme_loftspace: update the theme
This commit updates the theme to improve the design with new colors, new
pictures and new snippet customizations.

task-2557927

X-original-commit: 0d61d590ea
Part-of: odoo/design-themes#501
2021-09-24 11:09:48 +00:00