odoo-rpc-api
Makes your agent connect to Odoo externally. It allows integrating other systems with Odoo using APIs.
What it does
This agent helps you connect other programs to Odoo, a business management system. It allows you to read, create, update, and delete information within Odoo using code.
When to use it
- ✓Connecting a website or app to Odoo.
- ✓Automating data import or export from Odoo.
- ✓Integrating Odoo with other tools your company uses.
Example of what to ask your AI
“How do I connect my website to Odoo to fetch customer names?”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
You tell me what information you want to access or modify in Odoo. I generate the necessary code in languages like Python or JavaScript to make that connection and perform the operation.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add sickn33/agentic-awesome-skills --skill odoo-rpc-apiOr download just the file:
curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/odoo-rpc-api/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
Odoo RPC API
Overview
Odoo exposes a powerful external API via JSON-RPC and XML-RPC, allowing any external application to read, create, update, and delete records. This skill guides you through authenticating, calling models, and building robust integrations.
When to Use This Skill
- Connecting an external app (e.g., Django, Node.js, a mobile app) to Odoo.
- Running automated scripts to import/export data from Odoo.
- Building a middleware layer between Odoo and a third-party platform.
- Debugging API authentication or permission errors.
How It Works
- Activate: Mention
@odoo-rpc-apiand describe the integration you need. - Generate: Get copy-paste ready RPC call code in Python, JavaScript, or curl.
- Debug: Paste an error and get a diagnosis with a corrected call.
Examples
Example 1: Authenticate and Read Records (Python)
import os
import xmlrpc.client
url = 'https://myodoo.example.com'
db = 'my_database'
username = 'admin'
password = os.environ["ODOO_API_KEY"] # Use API keys, not passwords, in production
# Step 1: Authenticate
common = xmlrpc.client.ServerProxy(f'{url}/xmlrpc/2/common')
uid = common.authenticate(db, username, password, {})
print(f"Authenticated as UID: {uid}")
# Step 2: Call models
models = xmlrpc.client.ServerProxy(f'{url}/xmlrpc/2/object')
# Search confirmed sale orders
orders = models.execute_kw(db, uid, password,
'sale.order', 'search_read',
[[['state', '=', 'sale']]],
{'fields': ['name', 'partner_id', 'amount_total'], 'limit': 10}
)
for order in orders:
print(order)
Example 2: Create a Record (Python)
new_partner_id = models.execute_kw(db, uid, password,
'res.partner', 'create',
[{'name': 'Acme Corp', 'email': 'info@acme.com', 'is_company': True}]
)
print(f"Created partner ID: {new_partner_id}")
Example 3: JSON-RPC via curl
curl -X POST https://myodoo.example.com/web/dataset/call_kw \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "call",
"id": 1,
"params": {
"model": "res.partner",
"method": "search_read",
"args": [[["is_company", "=", true]]],
"kwargs": {"fields": ["name", "email"], "limit": 5}
}
}'
# Note: "id" is required by the JSON-RPC 2.0 spec to correlate responses.
# Odoo 16+ also supports the /web/dataset/call_kw endpoint but
# prefer /web/dataset/call_kw for model method calls.
Best Practices
- ✅ Do: Use API Keys (Settings → Technical → API Keys) instead of passwords — available from Odoo 14+.
- ✅ Do: Use
search_readinstead ofsearch+readto reduce network round trips. - ✅ Do: Always handle connection errors and implement retry logic with exponential backoff in production.
- ✅ Do: Store credentials in environment variables or a secrets manager (e.g., AWS Secrets Manager,
.envfile). - ❌ Don't: Hardcode passwords or API keys directly in scripts — rotate them and use env vars.
- ❌ Don't: Call the API in a tight loop without batching — bulk operations reduce server load significantly.
- ❌ Don't: Use the master admin password for API integrations — create a dedicated integration user with minimum required permissions.
Limitations
- Does not cover OAuth2 or session-cookie-based authentication — the examples use API key (token) auth only.
- Rate limiting is not built into the Odoo XMLRPC layer; you must implement throttling client-side.
- The XML-RPC endpoint (
/xmlrpc/2/) does not support file uploads — use the REST-basedir.attachmentmodel via JSON-RPC for binary data. - Odoo.sh (SaaS) may block some API calls depending on plan; verify your subscription supports external API access.
FAQ
Can I use my regular Odoo password?
It's recommended to use API keys instead of passwords for better security, especially in production. The agent can show you how to do this.
What are JSON-RPC and XML-RPC?
These are standardized ways for programs to communicate with each other over the internet. Odoo uses these methods to allow other systems to interact with it.
Can the agent create new customers in Odoo for me?
Yes, it can generate the code to create new records, such as customers, orders, and other data in Odoo.
Details
Original description by the author
Expert on Odoo's external JSON-RPC and XML-RPC APIs. Covers authentication, model calls, record CRUD, and real-world integration examples in Python, JavaScript, and curl.
Popularity
- GitHub stars
- 48k
- Ranking position
- #3736
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
00-andruia-consultant
Helps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
sickn33/agentic-awesome-skills
007
Lets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
sickn33/agentic-awesome-skills
10-andruia-skill-smith
Helps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
sickn33/agentic-awesome-skills
20-andruia-niche-intelligence
Lets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
sickn33/agentic-awesome-skills
Similar skills
api-connector-builder
Has your agent build new API connections following the existing pattern. Use when you need to add one more integration without creating a new way of doing things.
affaan-m/ECC
api-design
Helps your agent design REST APIs following best practices. It's useful for defining how APIs communicate, how errors are shown, and how to organize data.
affaan-m/ECC
backend-patterns
Helps your agent with server-side architecture patterns and database optimization. It's useful for building or reviewing code that runs on the server.
affaan-m/ECC