The wsgi application entrypoint moved during the [httpocalypse]. Some clients don't use the odoo builtin wsgi server and have troubles upgrading from 15.0 to 16.0 because the `odoo.service.wsgi_server` module doesn't exist anymore. [httpocalypse]: https://github.com/odoo/odoo/pull/78857 closes odoo/odoo#106187 X-original-commit: 4e5d7d2e93fcd082bd1b3a9e76cedab85b46f456 Signed-off-by: Julien Castiaux <juc@odoo.com>
12 lines
351 B
Python
12 lines
351 B
Python
import warnings
|
|
import odoo.http
|
|
|
|
|
|
def application(environ, start_response):
|
|
|
|
warnings.warn("The WSGI application entrypoint moved from "
|
|
"odoo.service.wsgi_server.application to odoo.http.root "
|
|
"in 15.3.",
|
|
DeprecationWarning, stacklevel=1)
|
|
return odoo.http.root(environ, start_response)
|