1. Introduction: How I Discovered the Power of n8n + Odoo
When managing multiple client projects in a digital agency, we relied heavily on Odoo to centralize CRM, sales, and invoices. But as the number of leads and clients grew, manual operations became a bottleneck — importing leads, updating statuses, and sending follow-up notifications were time-consuming and error-prone.
That's when I integrated n8n — the open-source automation platform — and discovered how its Odoo Node could turn repetitive ERP tasks into fully automated workflows. This article shares my technical experience building real use cases for lead management and client delivery using Odoo + n8n.
💡 What You'll Learn
- How to set up n8n with Odoo authentication
- Real automation workflows for lead management
- Invoice and contact automation examples
- Production deployment and scaling tips
2. The Technical Setup
Requirements
- Self-hosted Odoo instance (we used v16)
- n8n deployed on a Hetzner server
- Odoo API credentials: Base URL, Database, Username, Password
Authentication
In n8n, configure a new Odoo credential:
The Odoo node connects via JSON-RPC, so it can perform any CRUD operation on Odoo models like crm.lead, res.partner, or account.move.
3. Use Case 1: Importing Leads from Odoo and Delivering to Clients
In our agency, we often needed to extract leads generated in Odoo and automatically deliver them to clients in real time.
Workflow
- Trigger: Cron node runs every hour
- Action: Odoo Node → "Get Many" from crm.lead where stage_id = 'Qualified' and delivery_status = False
- Transform: Function Node → Format lead data
- Deliver: HTTP Node → POST leads to the client's CRM or Google Sheet
Example Odoo Node Query
Function Node (transform payload)
Result
n8n marks the lead as delivered (delivery_status = true) in Odoo via another Odoo Node — ensuring each lead is sent only once. This workflow alone eliminated hours of manual export/import work every day.
4. Use Case 2: Automating Lead Delivery When Stage Changes
We later improved this by making it event-driven.
Trigger
Webhook in n8n receives stage change events from Odoo via the Odoo API or a scheduled check.
Action Flow
- Detect when a lead moves from "New" → "Qualified"
- Automatically deliver to the assigned client
- Update the delivery_log field in Odoo
Example Logic
We also added notifications in Slack for the sales team:
"New qualified lead delivered to Client X — 15 min ago."
This created full visibility across teams.
5. Use Case 3: Contact and Invoice Automation
Managing customer communications was another repetitive area.
Workflow:
- Trigger: Odoo Node → New or updated record in res.partner (contacts)
- Action: Update marketing CRM or email list automatically
Then, when a new invoice was created in Odoo (account.move model):
- Trigger: Odoo Node detects new invoice
- Action: Send Email (via n8n Email or Gmail Node) → Notify accounting + customer
- Optional: Send Slack message to the sales team
Example: Email Node
Subject:
Body:
This eliminated manual email sending, and clients started receiving invoices instantly after validation.
6. Developer Insights: Working with the Odoo Node
- Any Odoo model can be accessed via the model name (e.g. crm.lead, account.move, res.partner)
- You can use custom filters in the domain parameter:
- Use Function Nodes for logic or data transformation
- Combine Odoo Node with HTTP, Webhook, or Database Nodes for more complex pipelines
- For unsupported endpoints, use the HTTP Request Node directly with Odoo's JSON-RPC API
7. Scaling and Hosting Tips
Since we deployed this system in production:
- n8n was hosted on a Hetzner cloud instance with 4 CPUs / 8 GB RAM
- Used queue mode + Redis to handle concurrent jobs
- Encrypted all credentials and sensitive data with environment variables
- Backed up workflows as JSON exports in Git
This setup processed thousands of leads weekly with minimal maintenance.
🚀 Want to Deploy n8n Quickly?
At AutomateSpot, we offer 5-minute n8n deployments on Hetzner servers with everything pre-configured. Perfect for agencies and developers who want to focus on building workflows, not server management.
Deploy n8n Now →8. Conclusion
The Odoo Node in n8n turned what used to be manual, multi-step operations into a set of autonomous workflows — from lead imports to contact updates and invoice notifications.
As a developer, using n8n allowed me to design complex Odoo automations visually but with full API-level control — no need for heavy custom modules or scripts.
If you're managing data, clients, or business operations inside Odoo — pairing it with n8n is one of the most flexible, scalable, and developer-friendly automation stacks you can build.
💡 SEO & Dev Tags
Tags: n8n odoo, odoo automation, api integration, erp workflows, developer guide, automation engineering