Commit Graph

18 Commits

Author SHA1 Message Date
Romain Derie 9a289ea574 [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#536

Related: odoo/odoo#81181
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2021-12-27 23:45:26 +00:00
Benjamin Vray 77b2b97f3d [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#539

Related: odoo/odoo#79783
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-12-22 17:06:47 +00:00
Odoo Translation Bot bef7e13b00 [I18N] Update translation terms from Transifex 2021-12-19 00:30:48 +01:00
Martin Trigaux 7d05d98ab3 [I18N] *: export source terms
closes odoo/design-themes#541

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-12-13 09:27:46 +00:00
xlu-odoo 545cf002ea [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#522

Related: odoo/odoo#78617
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-12-09 21:12:50 +00:00
stefanorigano (SRI) 0539787e23 [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#504

Related: odoo/odoo#77236
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-10-04 21:10:35 +00:00
Sébastien Mottet (oms) 285d413a44 [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#505

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-09-30 14:33:18 +00:00
qsm-odoo f244035809 [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#506

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-27 15:31:08 +00:00
Design f2453983a7 [FIX] theme_*: move svg preview from iap to design-themes repo
closes odoo/design-themes#502

Related: odoo/odoo#77139
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-09-24 17:11:58 +00:00
Cocographique 041922b9ee [REF] theme_zap: remove outdated theme description
task-2545207

Part-of: odoo/design-themes#500
2021-09-24 04:52:33 +00:00
Cocographique bbdfbba0d5 [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

Part-of: odoo/design-themes#500
2021-09-24 04:52:33 +00:00
Sébastien Mottet (oms) 57e63ad290 [FIX] theme_*: fix masonry xpath
*: vehicle, yes, zap

Commit [1] modified the website.s_masonry_block template and makes it
call website.s_masonry_block_default_template. The theme custo xpaths
should now be done in that template instead.

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

closes odoo/design-themes#493

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-03 10:38:08 +00:00
qsm-odoo 2be2841692 [FIX] theme_bistro, theme_zap: remove misleading 'hambuger' variable
Those two themes were defining a 'hambuger-type' variable to
'off-canvas', probably a typo of 'hamburger-type'... but the themes
do not even activate the views related to 'off-canvas', so this had
simply no effect and did not create any bug.

closes odoo/design-themes#488

X-original-commit: 4f8139719e
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-08-18 12:52:53 +00:00
Sébastien Mottet (oms) 20cca57c52 [IMP] website: change CTA based on website main objective
If user selects 'schedule appointments' as main objective in the configurator
and if the website_calendar module is installed then the Call To Action of
snippets s_banner, s_cover and s_call_to_action is changed to 'Schedule an
appointment' and redirect user to '/calendar' on click.

task-2518565

closes odoo/design-themes#5

Related: odoo/odoo#71162
Related: odoo/enterprise#18690
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-06-29 12:57:11 +00:00
qsm-odoo 2da6c2e84d [IMP] theme_*: remove save step from tour definition
It is now automatic as the last step of the homepage tours.

Part of https://github.com/odoo/design-themes/pull/2
task-2491890

X-original-commit: 9ee8f97264
2021-06-04 15:52:42 +00:00
Jeremy Kersten 62311833d9 [ADD] theme master 2021-05-10 15:46:48 +02:00
Jeremy Kersten 84ba083d17 [ADD] theme saas-14.3 2021-05-10 15:46:42 +02:00
Jeremy Kersten cb1e3be3f8 [ADD] theme 14.0 2021-05-10 15:45:35 +02:00