From 86c5839006d7ba27bc5afdcda0b5b31a23344b3f Mon Sep 17 00:00:00 2001 From: Jose Alonso Cardenas Marquez Date: Sat, 19 Jul 2025 16:50:12 -0700 Subject: finance/odoo16: Update to 16.0.20250719 --- finance/odoo16/files/patch-odoo_http.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 finance/odoo16/files/patch-odoo_http.py (limited to 'finance/odoo16/files/patch-odoo_http.py') diff --git a/finance/odoo16/files/patch-odoo_http.py b/finance/odoo16/files/patch-odoo_http.py new file mode 100644 index 000000000000..9f163a8fbc06 --- /dev/null +++ b/finance/odoo16/files/patch-odoo_http.py @@ -0,0 +1,22 @@ +--- odoo/http.py.orig 2025-07-19 21:02:41 UTC ++++ odoo/http.py +@@ -257,13 +257,12 @@ ROUTING_KEYS = { + 'alias', 'host', 'methods', + } + +-if parse_version(werkzeug.__version__) >= parse_version('2.0.2'): +- # Werkzeug 2.0.2 adds the websocket option. If a websocket request +- # (ws/wss) is trying to access an HTTP route, a WebsocketMismatch +- # exception is raised. On the other hand, Werkzeug 0.16 does not +- # support the websocket routing key. In order to bypass this issue, +- # let's add the websocket key only when appropriate. +- ROUTING_KEYS.add('websocket') ++# Werkzeug 2.0.2 adds the websocket option. If a websocket request ++# (ws/wss) is trying to access an HTTP route, a WebsocketMismatch ++# exception is raised. On the other hand, Werkzeug 0.16 does not ++# support the websocket routing key. In order to bypass this issue, ++# let's add the websocket key only when appropriate. ++ROUTING_KEYS.add('websocket') + + # The default duration of a user session cookie. Inactive sessions are reaped + # server-side as well with a threshold that can be set via an optional -- cgit v1.2.3