Fix Django startup hang when Odoo is unreachable #402

Merged
tobru merged 1 commit from lazy-odoo into main 2026-02-09 15:49:08 +00:00
Owner

Defer Odoo country fetch from import time to form instantiation by passing a callable to ChoiceField.choices. Add 10s socket timeout to all Odoo XML-RPC calls to prevent indefinite hangs.

Defer Odoo country fetch from import time to form instantiation by passing a callable to ChoiceField.choices. Add 10s socket timeout to all Odoo XML-RPC calls to prevent indefinite hangs.
Fix Django startup hang when Odoo is unreachable
All checks were successful
Tests / test (push) Successful in 43s
53d02e14c8
Defer Odoo country fetch from import time to form instantiation by
passing a callable to ChoiceField.choices. Add 10s socket timeout to
all Odoo XML-RPC calls to prevent indefinite hangs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tobru merged commit d1cc09f210 into main 2026-02-09 15:49:08 +00:00
tobru deleted branch lazy-odoo 2026-02-09 15:49:08 +00:00
Sign in to join this conversation.
No description provided.