Odoo 20's requirements.txt no longer ships the inotify python package,
so --dev=reload logged "'inotify' module not installed. Code autoreload
feature is disabled" and never restarted on file edits — breaking the
core promise of this blueprint (live edits auto-apply).
The init script now pip-installs inotify unconditionally after the
requirements install (cheap no-op when already present).
Symptom: fresh Odoo 20 deploy serves 127.0.0.1:8069 only; Traefik and the
swarm VIP get connection refused -> HTTP 502 through the preview domain.
Root cause (odoo/tools/config.py):
- line 289: --http-interface my_default='127.0.0.1'
- lines 768-770: empty http_interface is force-reset to 127.0.0.1
- the legacy xmlrpc_port key no longer exists (renamed http_port), so
the old conf line was silently ignored (port worked only via default)
Fix: generated odoo.conf now sets http_interface = 0.0.0.0 and
http_port = 8069. Verified end-to-end on the onebspace deployment:
internal 8069 binds 0.0.0.0, preview domain returns 200.