Files
odoo_source/addons/website/models
Romain Derie 2030e1fa67 [FIX] website: get env correctly on configurator_apply
Commit [1] in 17 introduced a `request.env` instead of `self.env` in
`configurator_apply()`. It was not seen and went through the merge.
It should not have any bad impact in real use cases as the method is
always called from the frontend context and `request` is bound but we
have this test [2] which was introduced in 17.1 which is calling
`configurator_apply()` in a python standalone unit test, where `request`
is unbound. It allowed us to detect the mistake since the nightly was
red because of it.

[1]: https://github.com/odoo/odoo/commit/9f319cbc95f8f4cb76df6f2b82e4b43a74f4b753
[2]: https://github.com/odoo/design-themes/commit/b8aae07df41b44aa78cf39ff6104136556199130

closes odoo/odoo#162170

Signed-off-by: Guillaume Dieleman (gdi) <gdi@odoo.com>
2024-04-18 00:32:39 +00:00
..
…
…