Quickstart
1
Connect your Odoo
In your project, go to Project Settings → Integrations, pick Odoo, and enter your credentials.
2
Let Leo understand your context
Ask Leo to explore your Odoo: “Check my Odoo and tell me what models and data I have.”
3
Create your frontend
Describe what you want: “Create a customer portal showing their orders and invoices.”
4
You're live!
Your webapp is directly connected to your Odoo. Create dashboards, portals, internal tools—anything you need.
Setup
- Go to Project Settings → Integrations
- Select Odoo from the list
- Follow the steps of the wizard:
- Odoo URL - Just the domain, e.g.
https://mycompany.odoo.com, with no/webor/odoopath. For self-hosted, include the port if it’s non-standard (https://odoo.mycompany.com:8069). HelloLeo checks the URL and shows your Odoo version and edition. - Database name - Pre-filled when your Odoo lists its databases. If the list is disabled, type it yourself.
- Odoo login (email) - Usually the email you log into Odoo with. On self-hosted with admin rights, it can also be
admin. - API key - Create one in Odoo: profile picture → My Preferences → Security → New API Key. Use an API key, not your login password: it works with 2FA and can be revoked on its own. Click Verify: you’ll see Authenticated — UID with your user ID.
- Odoo URL - Just the domain, e.g.
- Optionally give the connection a name, then click Save connection
- Choose what your app may access in the Permissions tab (see below), or skip it for now
- Start using Odoo in your prompts
Reusing a saved connection
Every Odoo connection is saved to your account. Next time you connect Odoo in a project, the wizard offers Use this next to each saved connection, or Connect another instance. Picking a saved connection only links it to the project. To rename it or change its credentials for every project that uses it, go to Integrations in the dashboard sidebar. Reconnecting from inside one project only changes that project.Reconnecting or disconnecting
Open Odoo on a connected project to find Reconnect / edit (restarts the wizard with your values filled in, e.g. after rotating your API key) and Disconnect.Permissions
Once connected, the Odoo window has a Permissions tab. It controls what your app may call on your Odoo through the HelloLeo Middleware.- Until you save permissions, access is unrestricted: the app can run any Odoo operation.
- Once saved, only the models you allowed pass. Each model has a read and a write checkbox. Anything not listed, including models added to Odoo later, is denied.
- Models are grouped by area (Sales, Accounting, Inventory…) and you can search them.
How It Works
HelloLeo uses the Odoo MCP (Model Context Protocol) to interact with your Odoo instance. Your credentials are encrypted and stored securely on the backend.HelloLeo Middleware
When HelloLeo creates a frontend application connected to Odoo, all API requests are automatically routed through the HelloLeo Middleware. This middleware acts as a secure proxy between your frontend and Odoo, providing several important benefits:How It Works
- Frontend makes request - Your HelloLeo-generated frontend sends API requests to the HelloLeo Middleware
- Middleware forwards request - The middleware forwards the request to Odoo using your stored API credentials
- Odoo responds - Odoo processes the request and sends a response back through the middleware
- Frontend receives data - The response is returned to your frontend application
Benefits
- No CORS Issues - Requests work immediately without CORS configuration. The middleware handles all cross-origin requests seamlessly.
- Secure API Keys - Your Odoo API keys are encrypted and stored securely on the backend. They’re never exposed to the frontend or end users.
- Automatic Authentication - The middleware automatically includes your Odoo credentials in every request, so you don’t need to manage authentication in your frontend code.
- Permission Management - Choose which Odoo models your app can read or write from the Permissions tab.
Technical Details
The middleware:- Encrypts and stores your Odoo credentials securely
- Handles Odoo’s JSON-RPC protocol automatically
- Manages session authentication and MFA
- Provides a consistent API interface for your frontend
- Logs all requests for debugging (visible in Network Monitor)
MCP Operations
execute_method
A generic tool that executes any method on any Odoo model.
Parameters:
model(required): The Odoo model name (e.g.,'res.partner','sale.order','product.product')method(required): The method name to execute (e.g.,'search','read','create','write','unlink','search_read','search_count')args(optional): List of positional argumentskwargs(optional): Dictionary of keyword arguments
success: Boolean indicating success/failureresult: The method result (if successful)error: Error message (if failed)
- Domain normalization for search methods (
search,search_count,'search_read') - Supports multiple domain formats (lists, dictionaries with conditions, JSON strings)
- Handles Odoo domain operators (
&,|,!)
Common Methods
Search Records
search: Find records by domainsearch_read: Search and read in one callsearch_count: Count records matching domain
Read Records
read: Get record details by IDs
Create Records
create: Create new records
Update Records
write: Update existing records
Delete Records
unlink: Delete records
Custom Methods
- Any custom method defined on the model
Example Usage
Search and Display Products
Create a Customer
Update an Order
Search Partners
Example MCP Command
Authentication
Admin Authentication (Setup)
When configuring the Odoo integration in HelloLeo, you authenticate using an admin or technical user account. This account is used by the HelloLeo Middleware to make API calls on behalf of your application. Use an Odoo API key for this account. API keys work even when the account has two-factor authentication turned on. Important: The credentials you provide during setup are encrypted and stored securely. They’re used by the middleware to authenticate all API requests, but are never exposed to your frontend code or end users.Portal User Authentication
When building customer portals or frontend applications with HelloLeo, you can implement portal user authentication so that end users (customers, vendors, etc.) log in with their own Odoo portal accounts.How Portal Authentication Works
- Portal User Login - End users log in using their Odoo portal credentials (email/password) through your HelloLeo-generated frontend
- Session Creation - The frontend authenticates with Odoo’s
/web/session/authenticateendpoint through the HelloLeo Middleware - Session Management - Odoo returns a session ID that identifies the portal user
- Data Access - All subsequent API requests use this session to access data according to the portal user’s permissions in Odoo
Implementing Portal Authentication
When building a portal, ask Leo to:Portal User Permissions
Portal users in Odoo have limited access based on:- Record Rules - Odoo’s record-level security rules
- Access Rights - Model-level read/write permissions
- Portal Groups - Portal user group membership
Security Considerations
- Portal users authenticate directly with Odoo, not with HelloLeo
- Session data is managed securely through the middleware
- All Odoo security rules and permissions are enforced
- API keys used by the middleware are separate from portal user sessions
Best Practices
- Be specific about models - Always mention which Odoo model you’re working with (e.g., “products”, “customers”, “orders”)
- Specify fields - Tell Leo which fields to display or update
- Use domain filters - Describe what records you want to find (e.g., “active products”, “confirmed orders”)
- Mention the integration - Always say “from Odoo” or “to Odoo” so Leo knows which integration to use
Troubleshooting
Connection Errors
”Database does not exist”
This error means the database name you entered doesn’t match the actual database on your Odoo server. How to find your database name:- Odoo.com hosted instances: The database name is usually your subdomain (e.g., for
https://mycompany.odoo.com, the database ismycompany) - Self-hosted Odoo: Go to
https://your-odoo-url/web/database/managerto see available databases - Ask your administrator: Your Odoo administrator can provide the exact database name
https://mycompany.odoo.com, but the actual database name could be something like mycompany-main-12345678. To find your technical database name:
- Enable debug mode (add
?debug=1to your URL), then look at the top-right corner of the screen — your database name will be displayed there. If the name is truncated with..., press F12 in your browser, inspect the element, and read the full value. - Or install the Odoo Toolbox browser extension, click the icon at the bottom-right, then click “Database” to copy the full name.
- Using the full URL instead of just the database name
- Adding extra characters or spaces
- Case sensitivity issues (database names are case-sensitive)
“Could not connect to Odoo instance”
Possible causes:- Wrong URL format: Use
https://your-instance.odoo.comwithout/odooor/webat the end - Network issues: Check if your Odoo instance is accessible from your network
- Firewall blocking: Some Odoo instances restrict external API access
- ✅ Correct:
https://mycompany.odoo.com - ❌ Wrong:
https://mycompany.odoo.com/odoo - ❌ Wrong:
https://mycompany.odoo.com/web
”Invalid credentials”
- Verify your login (usually your email address)
- Check your API key (not your login password)
- Ensure the user account is active in Odoo
- If using an API key, make sure it hasn’t expired
”Access Denied” or Permission Errors
- Your Odoo user may not have API access enabled
- Check with your Odoo administrator to ensure external API access is allowed
- Some Odoo editions (like Odoo Online free tier) may have API restrictions
Authentication Issues
- Check credentials - Verify your URL, database name, username, and password are correct
- 2FA enabled - Use an Odoo API key instead of your password
- UID missing - Click Verify on the API key step. If it fails, check your API key
Data Not Showing
- Check model name - Ensure you’re using the correct Odoo model name
- Verify permissions - Make sure your user has access to the model and records
- Check domain - Review your search criteria
Getting Help
If you’re still having issues:- Check your Odoo server logs for more detailed error messages
- Contact your Odoo administrator to verify API access is enabled
- Reach out to HelloLeo support with the exact error message you’re seeing
