upgrade-http-imports (U2024)#
A name imported from odoo.http that moved to a submodule in Odoo 20.0.
Applies to Odoo 20.0 and later.
What it does#
Reports from odoo.http import ... of names that moved: content_disposition
and Stream to odoo.http.stream, serialize_exception to
odoo.http.dispatcher, Session to odoo.http.session, db_list,
db_filter, dispatch_rpc and root to odoo.http.router, Request to
odoo.http.requestlib, GeoIP to odoo.http.geoip.
Why is this bad?#
odoo.http became a package in Odoo 20.0 that exports only request,
Response, Controller and route: the import fails.
Fix safety#
Safe: the moved names are imported from their new module.