odoo17: fix longpoll server start

This commit is contained in:
Alexander Sieg
2026-04-27 10:22:51 +02:00
parent 54fee0b8f3
commit b23dd31994
+7
View File
@@ -55,6 +55,13 @@ python.pkgs.buildPythonApplication rec {
}"
];
postPatch = ''
# hardcode the location of the unwrapped python scrip, otherwise the websocket
# server (called longpoll in codebase) will fail to start.
substituteInPlace odoo/service/server.py \
--replace-fail 'sys.argv[0]' "'${placeholder "out"}/bin/.odoo-wrapped'"
'';
build-system = with python.pkgs; [
setuptools
];