Skip to content

Commit a80317c

Browse files
Merge pull request #220 from GlodoUK/GH199288_web_endpoint_17.0
[GH199288][FIX] Replace /odoo endpoint with /web
2 parents 7f5c2d5 + 2c7a87d commit a80317c

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.ci/build.d/01_setup_venv

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ apt-get install -yq --no-install-recommends \
1111

1212
# Create a venv
1313
uv venv
14-
# Upgrade setuptools to handle
15-
# - https://github.com/astral-sh/uv/issues/2744
16-
# - https://github.com/pypa/setuptools/issues/4863
17-
uv pip install -U setuptools
14+
# Pin setuptools to handle https://github.com/pypa/setuptools/issues/5174
15+
uv pip install "setuptools<81"
1816
# Install Odoo, ensure we're using editable_mode=compat to avoid import problems
1917
uv pip install -r src/odoo/requirements.txt
2018
uv pip install -e src/odoo --config-setting editable_mode=compat

glodo_client/controllers/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def become(self, **kwargs):
230230
231231
Payload: {"database": "db_name", "user_id": 5}
232232
233-
Creates a session for the specified user and redirects to /odoo.
233+
Creates a session for the specified user and redirects to /web.
234234
"""
235235
payload = getattr(request, "glodo_payload", {})
236236
db_name = payload.get("database")
@@ -292,7 +292,7 @@ def become(self, **kwargs):
292292
db_name,
293293
)
294294

295-
return request.redirect("/odoo")
295+
return request.redirect("/web")
296296

297297
@route(
298298
"/glodo_cloud/user_manage",

0 commit comments

Comments
 (0)