Commit Graph

58 Commits

Author SHA1 Message Date
Brieuc-brd 6ea1b24e5e [IMP] theme_anelusia, *: adapt s_carousel_cards
*: theme_aviato, theme_beauty, theme_bewise, theme_bistro,
theme_bookstore, theme_buzzy, theme_clean, theme_cobalt, theme_enark,
theme_graphene, theme_kea, theme_kiddo, theme_monglia, theme_nano,
theme_notes, theme_odoo_experts, theme_orchid, theme_paptic,
theme_real_estate, theme_treehouse, theme_vehicle, theme_yes, theme_zap,
test_themes

This commit adapts customizations for `s_carousel_cards`.

task-4094405
Part of task-4077427

closes odoo/design-themes#986

Related: odoo/odoo#183519
Related: odoo/upgrade#6692
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-02-20 04:43:52 +00:00
Krzysztof Magusiak (krma) 0b82649197 [IMP] core: tools.config.is_testing flag
Flag to check whether Odoo was started in test mode.

task-4270485

closes odoo/design-themes#1009

Related: odoo/odoo#186924
Related: odoo/enterprise#73654
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2025-01-31 12:12:07 +00:00
Chrysanthe (chgo) 014a33d9f8 [IMP] test_themes: fix test for s_rating inner snippet
This commit adds a line within the `new_page_templates` test in order to
allow the snippet `s_rating` to be used with `s_rating_no_title`.

task-4306631

closes odoo/design-themes#1041

Related: odoo/odoo#186130
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-01-10 19:06:55 +00:00
Gorash 89ef56bda9 [IMP] orm/all: Make _name or _inherit mandatory
This is a request following the revert of the use of class names
(concerning the python inheritance and typing project)

closes odoo/design-themes#1040

X-original-commit: 2263661435
Related: odoo/odoo#191963
Related: odoo/enterprise#76269
Signed-off-by: Raphael Collet <rco@odoo.com>
2024-12-28 08:04:36 +00:00
qsm-odoo 0f4e8df0e1 [FIX] test_themes: restore the website switcher
The forward-port of [1] made no adaptation to the code, and it now
simply crashes when trying to use the website switcher when test_themes
is installed.

This also fixes a linter error introduced by that same [1] commit.

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

closes odoo/design-themes#1037

X-original-commit: a5a838e84f
Related: odoo/odoo#191567
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-12-24 08:45:12 +00:00
qsm-odoo 870d8b1a9e [IMP] test_themes: whitelist new snippet newsletter box classes
task-4306880
Part of task-4077427

closes odoo/design-themes#1036

Related: odoo/odoo#186281
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-12-22 00:31:52 +00:00
William Braeckman 2b56d0cf91 [FIX] test_themes: allow proper patch website_swit
..cher

Defines dataset directly on website elements such that it can be
overridden by other modules if necessary.
This was done due to the override in the `test_themes` module completely
overriding all attributes of the website_switcher's dropdown items.

Runbot Error 106501

closes odoo/design-themes#1029

X-original-commit: c5f4e1c414
Related: odoo/odoo#190526
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2024-12-12 20:14:43 +00:00
Krzysztof Magusiak (krma) 3da633d789 [IMP] core: clear environment reset
`reset()` is on the transaction.

task-4201974

closes odoo/design-themes#1008

Related: odoo/odoo#186635
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2024-11-12 08:53:06 +00:00
Gorash 377616168b [IMP] *: adapt model class names to correspond to model names (apply script)
closes odoo/design-themes#988

Related: odoo/odoo#178200
Related: odoo/enterprise#69762
Related: odoo/documentation#11115
Related: odoo/upgrade#6577
Related: odoo/upgrade-util#143
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2024-10-15 09:33:06 +00:00
Benjamin Vray 1c5f769a95 [FIX] test_themes: fix test_01_theme_upgrade_post_copy
Since the revamp of the "Nano" theme with this commit [1], the
"option_footer_scrolltop" template is no longer enabled for this theme.
This causes the "test_01_theme_upgrade_post_copy" test to fail, as it
relies on this template being enabled.

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

closes odoo/design-themes#983

X-original-commit: 5795112cd6
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2024-10-09 13:23:01 +00:00
Soukéina Bojabza a2c0751656 [FIX] test_themes, theme_*: fix not working theme tours
*: loftspace, real_estate

In commit [1], the test for the "Loftspace" and "Real Estate" themes has
been disabled, as their tour was not working.

This commit fixes the tours and reenables the test for these themes. The
issue was coming from the fact that they were trying to drop more
snippets than there really are, which made an acces to the array at an
inexisting index.

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

closes odoo/design-themes#978

X-original-commit: 4c3d843615
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-10-01 20:29:19 +00:00
Benoit Socias 8f94c7e19f [IMP] test_themes, theme_*: ensure that grid options are properly set
This commit adds a test that highlights mismatches in grid-related
options (classes, grid-area style...).

It also fixes the remaining issues in themes about it.

task-4213996

closes odoo/design-themes#971

X-original-commit: cf227cd139
Related: odoo/odoo#182039
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-30 16:38:13 +00:00
qsm-odoo 10148e0354 [FIX] test_themes, theme_*: fix errors in theme tours
Also disable the two theme tours that currently do not pass (for some
reason, they are not even starting at all). To fix later.

X-original-commit: 04f90cd883
Part-of: odoo/design-themes#971
Related: odoo/odoo#182039
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-30 16:38:13 +00:00
Benoit Socias 9cd2958f78 [IMP] test_themes: ensure styles only define properties once
This commit adds a test that makes sure that inline styles do not
contain the same property several times.

task-4206845

closes odoo/design-themes#946

X-original-commit: 199bd53c11
Related: odoo/odoo#181550
Signed-off-by: Alice Gaudon (agau) <agau@odoo.com>
2024-09-26 18:39:42 +00:00
Benoit Socias 4af494dc4b [IMP] test_themes: verify separators used for attributes
This commit adds a test that verifies that a specific `separator` is
used when an `attribute` tag is used with either `add` or `remove`.

task-4206845

X-original-commit: 6d1a98775e
Part-of: odoo/design-themes#946
Related: odoo/odoo#181550
Signed-off-by: Alice Gaudon (agau) <agau@odoo.com>
2024-09-26 18:39:42 +00:00
mano-odoo a808eaf1c3 [FIX] test_themes: whitelist fa-stack with fa-
Some snippet may come with the `fa-stack` class which breaks the
design-themes tests.

task-4156290
Part of: task-4077427

Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-21 16:34:53 +00:00
qsm-odoo 9eecd12db1 [IMP] *: remove useless utf-8 declaration
Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-21 16:34:53 +00:00
Benoit Socias 0da1e3ed9e [IMP] test_themes: add s_progress_bar_label_hidden to whitelist
Adds new class to `s_` whitelist.

Related to https://github.com/odoo/odoo/pull/176141.

task-4094394

closes odoo/design-themes#899

Related: odoo/odoo#176141
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2024-09-06 10:23:52 +00:00
Antoine (anso) cac8f3c4a2 [IMP] test_themes: adapt s_ classes whitelist in tests
This commit adapts the classes whitelist in `test_new_page_templates.py`
based on the new classes added during the dynamic snippets redesign.

task-3097273

closes odoo/design-themes#897

Related: odoo/odoo#135509
Related: odoo/enterprise#68754
Signed-off-by: Robin Lejeune (role) <role@odoo.com>
2024-09-05 08:26:05 +00:00
Benoit Socias 7f1e78faf5 [IMP] test_themes: add test to detect accidental cross-theme references
This commit adds a test to ensure that assets and images referenced from
a theme do actually belong to that theme.

task-4146886

Part-of: odoo/design-themes#889
Signed-off-by: Arthur Detroux (ard) <ard@odoo.com>
2024-08-30 13:10:12 +00:00
Brieuc-brd f66833de41 [IMP] test_themes, *: carousels adaptations
*: theme_anelusia, theme_artists, theme_avantgarde, theme_cobalt,
theme_cobalt, theme_enark, theme_loftspace, theme_notes,
theme_odoo_experts, theme_bewise, theme_bistro, theme_buzzy,
theme_clean, theme_graphene, theme_nano, theme_treehouse, theme_yes,
theme_aviato, theme_beauty, theme_bookstore, theme_kea, theme_kiddo,
theme_monglia, theme_orchid, theme_paptic, theme_real_estate,
theme_vehicle, theme_zap

This commit adapts the customizations related to `s_carousel`,
s_image_gallery` and `s_quotes_carousel` since these snippets has been
redesigned in PR[1].

task-3654328
Part of task-3619705

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

closes odoo/design-themes#836

Related: odoo/odoo#172727
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2024-08-27 08:18:59 +00:00
Brieuc-brd a17285da5b [IMP] test_themes: s_accordion adaptations
task-3759048
Part of task-3619705

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

closes odoo/design-themes#820

Related: odoo/odoo#172577
Related: odoo/upgrade#6309
Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
2024-08-13 14:22:43 +00:00
stefanorigano (SRI) 1304512350 [IMP] test_themes, theme_common: adapt s_progress_bar
task-4070098
part of task-3619705

closes odoo/design-themes#841

Related: odoo/odoo#174286
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2024-07-29 12:50:49 +00:00
Brieuc-brd dece1563a1 [IMP] test_themes, theme_buzzy: s_form adaptations
This commit adapts the s_form customizations since this snippet has been
redesigned in PR [1].

task-4048101
Part of task-3619705

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

closes odoo/design-themes#832

Related: odoo/odoo#172763
Signed-off-by: Robin Lejeune (role) <role@odoo.com>
2024-07-25 08:06:09 +00:00
Benjamin Vray 2b3b8b49b4 [IMP] test_themes, theme_* : Adapts tours for new dragNDrop system
Following the change in the way of dragging and dropping a snippet onto
the page (by selecting it from a dialog displaying the actual previews
of snippets). The themes tours have been adapted to this change in this
commit.

task-3919405

closes odoo/design-themes#817

Related: odoo/odoo#166967
Related: odoo/enterprise#66150
Signed-off-by: Robin Lejeune (role) <role@odoo.com>
2024-07-23 16:22:48 +00:00
Brieuc-brd 903b6a149a [IMP] theme_buzzy: s_blockquote adaptations
This commit removes the `s_blockquote` customization since this snippets
has been redesigned in PR[1].

task-3658347

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

Part-of: odoo/design-themes#828
Related: odoo/odoo#172723
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2024-07-23 10:18:56 +00:00
Benjamin Vray 80aa5ad40e [FIX] test_themes: fix test new page templates
The following commit [1] added a test to verify that there are no
duplicate classes in the elements of predefined page templates.

This test worked fine until it failed when we attempted to merge a
commit in which a template is rendered with empty spaces in the class
attribute of an element. The test considered the empty spaces as classes
and therefore assumed that two identical classes existed.

This commit excludes empty spaces when retrieving classes in this test.

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

task-3662985

closes odoo/design-themes#792

X-original-commit: 05cfe05280
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
2024-03-20 09:35:08 +00:00
Arthur Detroux (ard) 100bcbd810 [FIX] test_themes: fix test_01_theme_upgrade_post_copy
Commit [1] introduced a new test that uninstalls theme_buzzy. This leads
to the whole module being uninstalled because this module has all themes
as dependencies.

To fix this, we just run the test as the last test, ensuring the module
is still installed for other tests.

Ideally, tests would be independent from one another, but for now, the
order matters.

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

closes odoo/design-themes#782

X-original-commit: 45e9374699
Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
2024-03-05 08:42:04 +00:00
Bruno Boi (boi) e50cc5032b [FIX] test_themes: adapt switcher tooltip format
This adapts the WebsiteSwitcherSystray's DropdownItem
tooltips dataset to the changed API brought in
the community repository.

closes odoo/design-themes#765

Task: 3266145
Related: odoo/enterprise#48452
Related: odoo/odoo#137691
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2024-02-07 09:49:24 +00:00
Romain Derie 1d47f8ad57 [IMP] test_themes: add test for fix about primary template generation
See previous commit.

closes odoo/design-themes#761

X-original-commit: 14c3bbb9ff
Related: odoo/odoo#151375
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2024-02-03 06:07:04 +00:00
Benoit Socias 51c310c785 [IMP] test_themes: test that theme_default templates are generated
This commit adds a test that verifies if the theme_default's
configurator templates are generated whenever the website module is
either installed or updated.

Related to https://github.com/odoo/odoo/pull/151501.

task-3670496

closes odoo/design-themes#763

X-original-commit: b8aae07df4
Related: odoo/odoo#151682
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2024-01-30 10:54:18 +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
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
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
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
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
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
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
Denis Ledoux 1c01209d32 [IMP] base, *: change the API of init hooks to pass env
This is mostly a cleaning/refactoring change.

The current API for init hooks (pre, post, uninstall) is to pass
`cr, registry`.
But the first thing which was done by most
post init and uninstall hooks was to create an env using
the cr passed
e.g.
`env = api.Environment(cr, SUPERUSER_ID, {})`
and the `registry` argument was unused in all these hooks,
completely.

By changing the API of hooks to pass `env` instead
of `cr, registry`, we gain in average two lines in every
hooks:
- the line creating the env `env = api.Environment(cr, SUPERUSER_ID, {})`
- the line importing `api` and `SUPERUSER_ID`

Therefore removing ~250 lines of repeated code lines accross odoo/odoo and
odoo/enterprise.
In addition to these lines removed,
it also ease the API of init hooks for Odoo developers,
who are used to that `env` and not so much how to create an `env`
from a cursor.

closes odoo/design-themes#631

Related: odoo/enterprise#35084
Related: odoo/upgrade#4144
Related: odoo/odoo#108254
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2023-02-01 10:24:50 +01:00
Romain Derie 3c61793056 [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#615

X-original-commit: fea847977d
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-10-28 16:20:14 +02:00
Benoit Socias 6d48bdf9a5 [FIX] test_themes: patch website switcher template
In [1] when all modules were migrated to the new assets system, the
modules in design themes were forgotten.

This commit puts the owl templates into the correct asset.

[1]: https://github.com/odoo/odoo/commit/5410b7c238f211ced2519e53afc99c8468e1f527

closes odoo/design-themes#596

X-original-commit: 9f579f6400
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-09-27 17:11:42 +02:00
Romain Derie 0e2497b8e8 [IMP] test_themes, theme_test_custo: add new test theme for tests
This commit introduces a new theme for tests purpose.
The goal is to be able to create records and simulate a real use case
without only testing through unit tests in python.
For instance, with this commit, we now fully test:
- menu creation
- page creation
- new header & footer template
- new image shape & background shape

This will be extended later to be able to test other stuff too, maybe
like changing the website logo (not supported yet). Also, our existing
standalone test in themes should use this theme instead of nano to not
rely on a real theme that might change.

Courtesy of NMI as this theme is partly based on his job.

closes odoo/design-themes#586

Related: odoo/odoo#99099
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-09-07 23:10:56 +02:00
Romain Derie ca449f01f8 [FIX] test_themes: force request's website before _frontend_pre_dispatch
The callstack is:
- _pre_dispatch() (http_routing)
  - super()
  - _frontend_pre_dispatch()
    - super()
      - _frontend_pre_dispatch() (website) -> Set the website on request

But in `test_themes` we were forcing the website in a `_pre_dispatch()`
override, after calling `super()`.
It means that the call to `_frontend_pre_dispatch()` was actually done
without having yet forced the website in session. get_current_website()
would then not consider the `fw` param as not yet in session, and the
request.website would be set to 1, the default one.
Later in the business code, there would be a mismatch between
`request.website` and `get_current_website()`.

closes odoo/design-themes#582

Related: odoo/odoo#98200
Related: odoo/enterprise#30691
Related: odoo/upgrade#3808
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-08-31 23:50:15 +02:00
Romain Derie 35f4de9674 [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#585

X-original-commit: 96e713a14f
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-08-30 21:25:43 +02:00
Arthur Detroux (ard) fb23f19c1b [IMP] test_themes: (re)add preview to website (themes) switcher
Commit [1] moved the website switcher from the frontend to the backend
and in doing so re-factored it into an OWL component.

Initially, this refactoring broke the theme preview from the previous
widget. This commit re-introduces those previews.

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

task-2687506

closes odoo/design-themes#573

Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Co-authored-by: Younn Olivier <yol@odoo.com>
Co-authored-by: Romain Derie <rde@odoo.com>
2022-07-08 19:52:25 +02:00
Younn Olivier 163a8b6fae [IMP] test_themes: adapt to website_preview client action
This commit removes the tooltips shown when hovering over a theme in
the website switcher dropdown. This feature will be reimplemented later,
patching the WebsiteSwitcherSystray component.

It also adapts the ?fw= url parameter to force a website id during the
tours.

task-2687506

closes odoo/design-themes#572

Related: odoo/odoo#89223
Related: odoo/enterprise#28448
Related: odoo/upgrade#3464
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-06-24 12:39:29 +02:00
Romain Derie ab4f5e6178 [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#571

X-original-commit: 0e324061d1
Related: odoo/odoo#93109
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-06-08 16:50:59 +02:00
Gorash 93e2ca6de4 [IMP] *: remove _render from ir.ui.view
Follow adaptations made in the render api at odoo/odoo#85110

closes odoo/design-themes#554

Related: odoo/enterprise#24622
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2022-03-29 10:56:01 +02:00
Julien Castiaux 168e013b22 [REF] core: HTTPocalypse
Comprehensive refactor of the HTTP framework. Discussions, rationnals
and changes are found on GitHub.

closes odoo/design-themes#524

Pr: odoo/odoo#78857
Task: 2571224
Related: odoo/enterprise#21849
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-02-24 13:30:54 +00:00