Commit Graph

10 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Jeremy Kersten cb1e3be3f8 [ADD] theme 14.0 2021-05-10 15:45:35 +02:00