Commit Graph

26 Commits

Author SHA1 Message Date
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
Michael (mcm) 7ab07c6ec1 [REF] *: convert odoo module by native one
This commit converts all odoo module of this repo by native module.
The goal is to depreciate odoo.define in favor of native module
and then simplify boot.js by removing the regexp that finds
module dependencies.

task id: 3162300

closes odoo/design-themes#652

Signed-off-by: Géry Debongnie <ged@odoo.com>
2023-04-27 12:31:44 +02:00
Benjamin Vray 44b3badbca [FIX] theme_*: remove flip classes from theme snippets
Initially, the background shapes were flipped using only CSS. This was
done by adding the classes 'o_we_flip_x' or 'o_we_flip_y' to a shape to
flip it. However, this system caused issues as it sometimes left a gap
between two connected shapes. As a result, the system was changed with
this commit [1], and the classes 'o_we_flip_x' and 'o_we_flip_y' were no
longer used from this point on.

Despite this change, in our themes, we continued to use these obsolete
classes to define whether a shape should be flipped or not. This commit
addresses this by removing all instances of 'o_we_flip_x' and
'o_we_flip_y' classes that were still being used in theme snippets and
replacing them with the new system, where flipping is defined as a
parameter in the background image URL.

Note that in stable versions where we cannot modify theme snippets, we
have added code to automatically adapt the shapes to the new system
(in this commit [2]).

[1]: https://github.com/odoo/odoo/commit/42b3ad10e0b32b7fc72f801e2c67d6baf938c566
[2]: https://github.com/odoo/odoo/commit/256ff539afe331544ccb58848f1ecd0eecbe4daa

task-2824607

closes odoo/design-themes#639

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-04-07 19:43:08 +02:00
Mathieu (mano) 8ee2b3ac77 [FIX] theme_*: adapt svg shapes paths
In commit [1] some of the shapes have been moved to new folder or have
been renamed.

This commit adapt the paths of the previous shapes to their new location
in various themes.

[1]: https://github.com/odoo/odoo/commit/934069f834534ca3553ed28e46e5619c33463e50

task-3266705

closes odoo/design-themes#641

Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-04-06 19:16:46 +02:00
Soukéina Bojabza 628880b71b [IMP] theme_*: adapt some themes to the grid-only Masonry snippet
The Masonry snippet has been modified to be only in grid mode
and its templates have therefore been changed.

This commit adapts the themes that modify the Masonry templates to be
in accordance with these changes.

See community counterpart for details.

task-2973198

closes odoo/design-themes#601

X-original-commit: ef84cdf84d
Related: odoo/odoo#102525
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-10-06 23:14:30 +02:00
Benoit Socias f127ff3741 [IMP] theme_*: add precondition on tour to ensure expected theme
This commit adds a precondition to verify the presence of the specific
theme at the beginning of their tour.

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

task-2687506

closes odoo/design-themes#594

X-original-commit: 8b377af3a7
Related: odoo/odoo#101119
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-09-26 14:43:17 +02:00
qsm-odoo c95aa445fa [IMP] theme_*: ease defining only one font family to use in a theme
Before this commit, if a theme wanted to define a main font for their
theme and let the "headings", "navbar" and "buttons" ones use the same
they had to add this in their map:

```
'font': XXX,
'headings-font': null,
'navbar-font': null,
'button-font': null,
```

Indeed, without setting the "null" values, those font would use YYY
which is the first font defined in the theme config, which might be
different from XXX. And if forcing XXX 4 times, like most themes do at
the moment, if the user wanted to change them all, he had to change the
4 ones instead of the main one.

Now, only the 'font' value use the first font defined in the theme
config if not explicitly set. So forcing the null values is not
necessary, it will be the default behavior.
The advantage is thus also functional, as most theme forced all their 4
fonts so changing the main one did not change the others.

task-2993054

closes odoo/design-themes#593

X-original-commit: fc64bce81e
Related: odoo/odoo#101068
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-09-26 11:36:44 +02:00
Romeo Fragomeli 54cca0eaf6 [REF] *: BS5: migration
Automated change made by a lot of RegEx to change all think that is
possible to automate.

https://getbootstrap.com/docs/5.1/migration

Task ID: 2766483

Part-of: odoo/design-themes#580
2022-07-07 13:29:20 +02:00
Jorge Pinna Puissant dc2f511202 [IMP] theme_*: enable no-unused-vars rule
closes odoo/design-themes#552

Related: odoo/enterprise#24867
Related: odoo/odoo#85569
Signed-off-by: Géry Debongnie <ged@odoo.com>
2022-03-02 13:05:46 +00: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
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
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
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
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
Brieuc-brd 34d61b2815 [IMP] theme_*: update according to new shapes
task-2319488

closes odoo/design-themes#17

Related: odoo/odoo#70843
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-06-15 12:24:08 +00:00
Younn Olivier da5c40ff38 [IMP] theme_*: use theme colors for snippets background
This commit changes the bg-200 static color that some snippets were
using, for the second theme color so that blocks backgrounds connect
well together.

task-2542318

closes odoo/design-themes#15

Related: odoo/odoo#71426
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-06-10 13:39:33 +00:00
qsm-odoo 8e181539a5 [IMP] theme_*: remove hardcoded colors on shapes and snippets
Instead now use another custom mapping for the default colors of the
shapes which are used for the default homepage. This allows for the
built page to work with any color palette (especially useful for built
pages in the new configurator) and to handle footer/header connection.

Also change some shapes and default background colors to match what
the preview wanted directly (instead of relying on user asked change as
that would not be handled when generating the page automatically with
the configurator).

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

closes odoo/design-themes#12

closes odoo/design-themes#14

Related: odoo/odoo#71665
Related: odoo/odoo#71768
X-original-commit: 845b969555
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-06-04 15:52:42 +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