diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 38a974e..6af0440 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,6 +2,7 @@ exclude: | (?x) # NOT INSTALLABLE ADDONS ^base_fileurl_field/| + ^cloud_platform/| ^monitoring_log_requests/| ^monitoring_prometheus/| ^monitoring_statsd/| diff --git a/monitoring_prometheus/__manifest__.py b/monitoring_prometheus/__manifest__.py index 95901a0..8d81ed1 100644 --- a/monitoring_prometheus/__manifest__.py +++ b/monitoring_prometheus/__manifest__.py @@ -7,14 +7,9 @@ "version": "18.0.1.0.0", "author": "Camptocamp,Odoo Community Association (OCA)", "license": "AGPL-3", - "category": "category", - "depends": [ - "base", - "web", - "server_environment", - ], + "category": "Extra Tools", + "depends": ["base", "web"], "website": "https://github.com/camptocamp/odoo-cloud-platform", - "data": [], "external_dependencies": { "python": ["prometheus_client"], }, diff --git a/monitoring_prometheus/models/ir_http.py b/monitoring_prometheus/models/ir_http.py index b2316c8..e615f6e 100644 --- a/monitoring_prometheus/models/ir_http.py +++ b/monitoring_prometheus/models/ir_http.py @@ -17,6 +17,8 @@ class IrHttp(models.AbstractModel): @classmethod def _dispatch(cls, endpoint): + # httprequest environment is updated with WSGI environment variables in core + # REF: https://github.com/odoo/odoo/blob/19.0/odoo/http.py#L2120 path_info = request.httprequest.environ.get("PATH_INFO") if path_info.startswith("/longpolling/"):