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
2021-12-13 13:17:53 +00:00
2022-07-07 13:29:20 +02:00
2022-07-07 13:29:20 +02:00
2022-07-07 13:29:20 +02:00
2022-07-07 13:29:20 +02:00
2022-07-07 13:29:20 +02:00
2022-07-07 13:29:20 +02:00
2022-07-07 13:29:20 +02:00
2022-07-07 13:29:20 +02:00
2022-07-07 13:29:20 +02:00
2022-07-07 13:29:20 +02:00
2022-07-07 13:29:20 +02:00
2022-07-07 13:29:20 +02:00
2022-07-07 13:29:20 +02:00
2022-07-07 13:29:20 +02:00
2021-05-10 15:45:35 +02:00
S
Description
No description provided
764 MiB
Languages
SCSS 49.6%
Python 25.4%
JavaScript 24.4%
Rich Text Format 0.5%