Perform record CRUD via Odoo external API (XML-RPC or JSON-RPC)

domain: Odoo External API · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate by calling the XML-RPC endpoint /xmlrpc/2/common execute_kw with method 'authenticate', passing the database name, username, and password (or API key); receive the user UID integer on success.
  2. For all subsequent operations call /xmlrpc/2/object with service 'execute_kw', the database, UID, password/API key, the model name (e.g., 'res.partner'), and the method ('search_read', 'create', 'write', or 'unlink').
  3. To read records: call search_read with a domain filter list (e.g., [['is_company','=',True]]), a fields list, and optional limit/offset; the response is a list of dictionaries.
  4. To create: call create with a single dictionary of field values; receive the new record ID integer.
  5. To update: call write with a list of IDs and a dictionary of changed fields; to delete call unlink with a list of IDs.

Known gotchas

Related routes

Authenticate and perform CRUD operations via Odoo XML-RPC external API
odoo · 5 steps · unrated
migrate an odoo integration from the legacy xml-rpc/json-rpc api to the external json-2 api
odoo.com/documentation · 5 steps · unrated
Create a manufacturing order (mrp.production), confirm it, and record production (work orders) via the Odoo JSON-RPC external API
odoo.com/documentation · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans