Odoo API: models, records and ERP automation with AI agents
Odoo offers an external API that gives access to ERP models such as contacts, sales, purchases, inventory, accounting and CRM, under the same permission rules as users. Integrators and companies use it to connect Odoo to other systems. Access is with a user and an API key, on editions that allow external access.
What the Odoo API offers
Reading records
Search and read records of any model, with filters.
Create and edit
Create, update and archive records.
Sales and CRM
Quotations, orders, opportunities and customers.
Inventory and purchasing
Products, stock moves and purchase orders.
Accounting
Invoices, payments and journal entries, depending on permissions.
Model methods
Call ERP actions, such as confirming an order.
How to access the Odoo API
- With your company’s credentialsAn Odoo user with an API key generated in the preferences, used in XML-RPC or JSON-RPC calls. Permissions follow those of the user.
- External access depends on your Odoo edition and plan.
- Use a user with minimal permissions; the API respects the user's rules.
- Accounting postings should require approval.
Official documentation: www.odoo.com/documentation
What an iTeam agent does with the Odoo API
Quotation from a customer request
The agent reads the request in an e-mail, builds the quotation in Odoo and sends it to the salesperson for approval.
Stock replenishment
The agent checks minimum stock levels and proposes purchase orders for approval.
Invoice collection
The agent lists overdue invoices and sends reminders, logging them in the history.
Order status answers
The customer asks for the status and the agent checks delivery and invoice in Odoo.
From the credential to the agent at work, with approval
Integration user
Create a user in Odoo with minimal access groups and generate the API key.
Vault and allowed models
Store it in the iTeam vault and define which models and actions each agent can use.
Test on a test database
Use a test database if you have one, and approve confirmations and postings at the start.
Ready-made AI teams that use Odoo
Inventory planning team
Stock, sales and lead times are checked every day. You get a reorder list per SKU and a warning about what is not selling.
Procurement and quotes team
Requests go out to suppliers, quotes come back into one table, and the approver sees price, terms and past orders before saying yes.
Questions about the Odoo API
Is the Odoo API free?
It depends on the edition. The API is part of Odoo, but external access may require a specific plan on Odoo Online. Check the current terms.
Do I need to write code to use the Odoo API with iTeam?
Not necessarily. iTeam's HTTP tool reads the API documentation and learns the endpoints, and the deployment team sets up credentials, permissions and tests with you.
Does Odoo have a REST API?
Odoo's traditional external API uses XML-RPC and JSON-RPC. Versions and modules may offer other options; check the documentation for your version.