Switch the connector to JSON-RPC; drive records with buttons
JSON-RPC is the recommended Odoo API from 19 on. odoo_connect.py now posts to /jsonrpc over stdlib urllib instead of xmlrpc.client — same x()/get_or_create()/ fields_named() surface, common.version() becomes version(), server errors raise OdooError with Odoo's message, 600s timeout so module installs survive. Also: state changes must go through the model's own button method, never a write on state. Writing the field skips the delivery order, the journal entries, the sequence and the validations a hero feature exists to demonstrate. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
d913cdf09a
commit
3fd2c51a3d
@@ -61,7 +61,7 @@ Several core fields were renamed in v19 (`res.users.group_ids`, `res.groups` los
|
||||
```
|
||||
SKILL.md the procedure (what the agent follows)
|
||||
UPSTREAM.md fork point + divergence from upstream
|
||||
scripts/odoo_connect.py XML-RPC connector + helpers
|
||||
scripts/odoo_connect.py JSON-RPC connector + helpers
|
||||
scripts/build_demo.py config-driven data + hero builder (template)
|
||||
demo_config.example.json per-client config shape
|
||||
reference/odoo19-field-gotchas.md version-specific fields + footguns
|
||||
|
||||
Reference in New Issue
Block a user