odoo-rpc-api

Solid

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.

AI & Automation 39,350 stars 6386 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 1. **Activate**: Mention `@odoo-rpc-api` and describe the integration you need. 2. **Generate**: Get copy-paste ready RPC call code in Python, JavaScript, or curl. 3. **Debug**: Paste an error and get a diagnosis with a corrected call. ## Examples ### Example 1: Authenticate and Read Records (Python) ```python import xmlrpc.client url = 'https://myodoo.example.com' db = 'my_database' username = 'admin' password = 'my_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', 'amo...

Details

Author
sickn33
Repository
sickn33/antigravity-awesome-skills
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category