Odoo and AI – why open source ERP wins in the Claude Code era
Odoo and AI are the future of ERP. See how Claude Code, Codex and open source are changing ERP development, and why closed ERP systems are losing.

In May 2026 we are watching something that changes the rules of the ERP market. AI agents – Claude Code, OpenAI Codex, Google’s Antigravity – can write, test and deploy production code. But there is one condition: they need access to the source code. That is exactly why open source ERP, led by Odoo, is gaining an advantage that closed systems cannot make up.
As CEO of Macopedia – a company founded in 2012, with a team of more than 40 specialists – I see this shift from the front line. In this article I explain why the combination of open source ERP and AI agents is not a passing trend but a fundamental change in how business systems are built.
Closed ERP in the age of AI – the problem nobody talks about
Let’s start with an uncomfortable truth. Most ERP systems used in Poland – SAP, Comarch XL, enova365, Microsoft Dynamics – are closed black boxes. Their source code is not available. Customization happens only through tools supplied by the vendor, within strictly defined interfaces.
For years this was not a problem. Consulting firms built expertise around specific platforms, and clients paid for every change. The model worked: slowly and expensively, but reliably.
Now we have AI agents that can:
-
Read and analyze a project’s entire codebase
-
Understand module structure, dependencies and business logic
-
Generate new modules, tests and data migrations
-
Run code reviews and find bugs
-
Refactor existing code while keeping it compatible
But to do all that, AI needs one thing: access to the source code. Claude Code cannot read SAP’s code, because that code is not available. Codex will not generate a new Comarch XL module, because it does not know the system’s structure. Antigravity will not refactor enova365, because there is nothing for it to reach.
Closed ERP source code means a closed door for AI. It is a fundamental barrier that no API or plugin will overcome.
This is not about the quality of these systems – SAP and Dynamics are mature, proven platforms. The problem lies in the architecture: a proprietary codebase rules out using AI agents to develop the system. And that means companies on closed ERP are left with the traditional, costly model of implementation and development, while the rest of the market speeds up.
Odoo – a mature ERP that is ready for AI
Odoo is not a niche open source project. It is a full ERP system with more than 80 official modules, tens of thousands of apps in its ecosystem and millions of users worldwide. But from an AI perspective, three traits make it an ideal candidate for working with AI agents.
Python and open source – the ideal stack for AI agents
Odoo is written in Python, with views in XML. The entire Community Edition code is available under the LGPL license. This means:
-
Python is the number one language for AI – language models are trained on huge amounts of Python code, which translates into the highest quality of generated code
-
Full access to the codebase – an AI agent can read every model, view, controller and test
-
A standardized module structure – every Odoo module has a predictable layout (models, views, security, data, tests), which makes it easier for AI to understand and generate code
-
Rich documentation and examples – thousands of modules in the ecosystem are training material from which AI learns best practices
In practice, this means an AI agent can read the sale module, understand how sales orders work and then generate a new module that extends this functionality – complete with models, views, access rules and tests. Not in theory. Today.
Odoo 19 and 20 – AI built into the system’s DNA
Odoo doesn’t just let external AI work with its code; it is actively building artificial intelligence into its own modules. Version 19 introduced:
-
A dedicated AI app – a central hub for managing AI features across the whole system
-
Built-in AI agents in CRM, accounting, helpdesk and HR – assistants that help with everyday tasks
-
The new JSON-2 API – replacing the outdated XML-RPC and JSON-RPC, designed with modern integrations in mind
But the real revolution will come with Odoo 20, announced for September 2026. Its central theme will be Agentic AI, meaning proactive processes that run without human intervention. Imagine an ERP system that identifies late payments on its own, generates reminders, updates forecasts and notifies the right people – all without the user clicking anything.
JSON-2 API – an ERP driven by natural language
The new JSON-2 API in Odoo 19 is a milestone for AI integration. Unlike the old XML-RPC, the new API is:
-
Simple and predictable – standard JSON, easy for language models to understand
-
Well documented – with examples that AI can use directly
-
Compatible with MCP (Model Context Protocol) – which lets AI agents interact directly with ERP data
In practice, this means you can tell an AI agent: “Show me all invoices from last month that haven’t been paid” – and the agent, using the JSON-2 API, will fetch that data, analyze it and suggest actions. This isn’t science fiction. It is working technology.
Claude Code, Codex and Antigravity – the new ERP developers
Three AI tools are changing the way we develop ERP systems. Each has different strengths, but they all share one thing: they need open source code.
Claude Code – an agent that understands the entire Odoo codebase
Claude Code from Anthropic is an AI agent that runs directly in the terminal. Its biggest strength is its ability to work with large codebases: it can load and understand the entire Odoo codebase, including the relationships between modules.
What Claude Code can do with an Odoo project:
-
Analyze existing code – read a module, understand the business logic, identify potential problems
-
Generate complete modules – create models, views, security rules, demo data and tests from a natural language description
-
Code review – analyze a pull request for compliance with Odoo best practices
-
Debugging – analyze a stack trace, find the cause of a bug and propose a fix
-
Migrations – help migrate modules between Odoo versions
GitHub already has ready-made tools that integrate Claude Code with Odoo – from specialized “Odoo Development Skills” to complete development workflows. There is also an official “AI Claude Anthropic” module in the Odoo Apps Store that integrates Claude directly with the Odoo interface.
OpenAI Codex – an asynchronous executor in the cloud
Codex from OpenAI has a different profile from Claude Code. It works as an asynchronous executor in the cloud: you can hand it a task and keep working, while Codex processes it in the background and delivers the result.
For Odoo development, Codex works particularly well for:
-
Processing many tickets in parallel – you assign 10 tasks at once and Codex processes them in parallel
-
Generating tests – it generates a suite of unit and integration tests based on existing code
-
Large-scale refactoring – changing naming conventions, updating API calls across the whole project
-
Creating pull requests – automatically generating PRs with descriptions of the changes
Antigravity (Google) – an AI-native IDE with Gemini Pro
Antigravity is the newest player on the market: an AI-native IDE from Google, built on the Gemini Pro model. Unlike Claude Code and Codex, which are terminal agents, Antigravity is a full development environment with built-in autonomous and semi-autonomous agents.
Antigravity’s key feature for ERP development is its integration with MCP (Model Context Protocol). Thanks to it, Antigravity can connect directly to ERP and CRM systems, fetch context data and use it when generating code. Imagine an IDE that understands not only the code of your Odoo module but also the production data in the system, and suggests optimizations on that basis.
Vibe coding for ERP – “add a field to the invoice” and you’re done
The term “vibe coding” describes an approach in which a developer (or even a non-technical person) describes a feature in natural language and AI generates production code. In the context of open source ERP, this approach becomes realistic.
An example? You say to Claude Code:
“Add a ‘customer order number’ field to the invoice model in Odoo. The field should be visible on the invoice form, in the PDF report and available through the API. Add validation: the field is required for sales invoices.”
Claude Code will analyze the structure of the account module, generate the model with the new field, update the XML views, modify the QWeb report template, add security rules and write tests. The whole thing takes minutes instead of hours.
In a closed ERP, the same task requires contacting the vendor, analyzing what the platform allows, ordering a customization and waiting for it to be deployed. Weeks instead of minutes.
Traditional development of an Odoo module, from requirements analysis to production deployment, takes weeks or months. With AI agents, that time shrinks to hours or days. Not because AI writes worse code, but because it eliminates repetitive work: scaffolding, boilerplate, unit tests, documentation.
Open Mercato – a next-generation framework with AI in its DNA
Odoo is a mature system with a 20-year history that is adapting to the AI era. But a project has also appeared that was built from scratch to work with AI agents: Open Mercato.
Open Mercato is a TypeScript framework for building CRM, ERP and Commerce systems. It is not a ready-made ERP like Odoo. It is rather a set of tools and architectural decisions that let you quickly build a system tailored to specific needs. It was created by Piotr and Tomasz Karwatka, the creators of Vue Storefront and founders of Divante. We describe how we implement it and when we choose it over Odoo on our page about Open Mercato implementations.
What sets Open Mercato apart from an AI perspective:
-
AI-first architecture – every module has machine-readable extensibility contracts that tell AI agents how to modify the system safely
-
Built-in AI assistants – the admin panel has integrated AI assistants, each with its own scope of responsibility per module
-
Approval workflow – every change proposed by AI goes through approval cards, which gives humans full control
-
“Start with 80% Done” – the architectural decisions are made up front (TypeScript, Next.js, PostgreSQL, MikroORM, Zod), which removes the paralyzing technology-selection phase
-
MIT license – full freedom to modify, code available on GitHub
The full Open Mercato documentation is available online and worth reading, especially if you plan to build a system from scratch.
Comparison: Odoo, Open Mercato and closed ERP
| Feature | Odoo (Community) | Open Mercato | Closed ERP (SAP, Comarch, enova) |
|---|---|---|---|
| License | LGPL (open source) | MIT (open source) | Proprietary |
| Language | Python and XML | TypeScript and Next.js | Varies (often not available) |
| AI access to code | Full | Full, with contracts for AI | None or minimal |
| Vibe coding | Yes | Yes (AI-first) | No |
| Maturity | 20+ years, 80+ modules | New project (2025) | Mature (10–40 years) |
| Ready-made modules | Thousands of apps | Growing ecosystem | Rich ecosystem |
| Built-in AI | Yes (since version 19) | Yes (from the start) | Partly (Copilot in Dynamics) |
| License cost | PLN 0 (Community) | PLN 0 | High license fees |
| Vendor lock-in | Low | None | High |
| Best for | Companies that need a complete ERP | Companies building a tailor-made system | Corporations with existing implementations |
What does this mean in practice? Five new possibilities
Combining open source ERP with AI agents opens up possibilities that sounded like science fiction just a year ago. Here are the five most important:
1. Rapid prototyping of ERP modules – hours instead of weeks
Traditionally, creating a new Odoo module, from requirements analysis to a working prototype, took weeks. With Claude Code or Codex you can have a working prototype within one working day. This doesn’t replace the full implementation process, but it drastically shortens the idea validation phase. Instead of debating requirements in documents for weeks, you can show stakeholders a working module and collect concrete feedback.
2. AI-assisted testing and code review
One of the biggest challenges in Odoo development is ensuring code quality, especially in large projects with many custom modules. AI agents can automatically generate unit and integration tests, run code reviews against Odoo best practices and detect potential performance or security problems. In the Odoo implementation process, this means a higher-quality end product.
3. AI verification of business requirements
An AI agent can read a requirements specification and compare it with Odoo’s existing functionality. It often turns out that 70–80% of the required features already exist in the standard modules and only need to be configured properly. AI helps you avoid costly reinventing of the wheel and points the team to the real gaps that need custom code.
4. A natural language interface to ERP
Thanks to the JSON-2 API and AI integration, Odoo CRM and other modules can be operated in natural language. “Show me the top 10 customers by order value in Q1 2026” no longer requires knowing the Odoo interface or building reports. AI fetches the data through the API, analyzes it and presents it in an understandable form.
5. Democratizing ERP development
In the long run, this may be the most important change. Vibe coding lowers the barrier to entry for ERP development. A business analyst who understands the company’s processes can, with AI support, create a working prototype of a module without deep programming knowledge. This doesn’t remove the need for experienced developers, because the code still needs review, optimization and maintenance. But it democratizes the creation and experimentation phase.
The dark side of AI in ERP – risks you need to know
It would be irresponsible of us to talk only about the possibilities. AI-assisted development carries real risks, and in the context of an ERP system, which manages finances, inventory and customer data, they can have serious consequences.
Code without control – “it works” doesn’t mean “it’s correct”
The biggest risk? An AI agent generates code that passes the tests, looks correct and at first glance works. But underneath it contains a logic error: for example, it calculates VAT incorrectly in a specific scenario, handles currency rounding wrongly or creates duplicate records under concurrent access. These are errors that surface after weeks or months, often at the worst possible moment: at month-end close or during an audit.
AI doesn’t understand your company’s business context. It doesn’t know that in Poland a corrective invoice requires confirmation of receipt. It doesn’t know that your customers have non-standard payment terms. It generates code that follows patterns, but patterns are not the same as your reality.
Security – AI doesn’t think like a hacker
AI-generated code often contains security holes the agent is not aware of:
-
SQL injection – AI may generate queries without proper parameter escaping, especially in custom reports and filters
-
Missing permission checks – a new API endpoint may not check whether the user is entitled to the data it returns
-
Data exposure – AI may create a view that shows sensitive data (purchase prices, margins, personal data) to users who should not see it
-
Hardcoded credentials – API keys, passwords or tokens pasted into the code instead of environment variables
In an ERP system that processes financial data, personal data (GDPR) and commercial information, every security hole is a potential disaster: legal, financial and reputational.
Technical debt on steroids
AI generates code fast. Very fast. And that is both an advantage and a trap. When creating a new module takes hours instead of weeks, the temptation is simple: “let’s add this, and this, and that too”. As a result, within a few months the system accumulates dozens of custom modules, each generated by AI, but none of them having gone through a thorough architectural review. Upgrading Odoo to a new version becomes a nightmare, because nobody fully understands all the dependencies.
That’s why a developer is still essential
AI is a tool: a powerful one, but a tool. In the context of ERP, humans are irreplaceable in several key roles:
-
Code review – all AI-generated code must be reviewed by an experienced developer who knows Odoo, understands the business context and can catch subtle errors
-
Security audit – a dedicated review for the OWASP Top 10, permissions, data validation and GDPR compliance
-
Architecture – decisions on whether a new module should exist at all or whether it’s better to extend an existing one, and how to plan the structure so as not to generate technical debt
-
Testing in a business context – AI will generate unit tests, but it won’t test the scenario “what if a customer orders 10,000 units with a 12% discount and pays in three installments in EUR”
-
Accountability – AI is not accountable for an error that costs the company money. A human is
The best model for working with AI in ERP is not “AI writes, a human approves”. It is “AI proposes, a human verifies, tests and takes responsibility”. The difference is subtle, but fundamental.
At Macopedia we follow one rule: no AI-generated code goes to production without a review by an experienced Odoo developer. AI speeds up the work, but it is the people on our 80-strong team who decide what is safe and correct.
Why does this matter for your company?
If you run a company that uses an ERP system or plans to implement one, the paradigm shift to open source and AI should be on your radar. Here are three key aspects:
Total cost of ownership: AI and open source versus traditional consulting
A closed ERP is not just a license. It means the cost of consultants, who are the only way to customize it. It means months-long projects for features that can be prototyped in days in open source with AI. It means dependence on a single vendor that dictates the pace and the prices.
Open source ERP with AI agents changes these economics. It doesn’t eliminate the need for experts – quite the opposite: you need people who understand the system and can work effectively with AI. But the cost of every change goes down, and the time to deliver it gets shorter.
At Macopedia, with our team of more than 40 specialists, we are already integrating AI tools into our development processes. The result? Faster delivery, higher code quality and, most importantly, more value for our clients.
Speed to market
In B2B, the speed of delivering new ERP features often decides competitive advantage. A company that implements a new process in Odoo in a week with the help of AI has an edge over a company that waits three months for a change in a closed system. This gap will only widen as AI agents improve.
Vendor lock-in versus freedom
A closed ERP means dependence: on the vendor, on its price list, on its roadmap. Open source ERP gives you freedom. You can change your implementation partner, you can develop the system yourself, you can use any AI tools you like. This freedom has real business value, especially in the long run.
FAQ – frequently asked questions
Is Odoo open source?
Yes. Odoo Community Edition is available under the LGPL license: you can download, use, modify and distribute it for free. There is also a paid Enterprise edition with additional modules and support. Read more in our complete guide to Odoo.
What is Claude Code and how does it work with Odoo?
Claude Code is an AI agent from Anthropic that runs in the terminal and can read, analyze and generate code. Because Odoo is written in Python and is open source, Claude Code can read the entire codebase, understand the module structure and generate new functionality: from data models to views and tests.
What is Open Mercato?
Open Mercato is a TypeScript framework (MIT license) for building CRM, ERP and Commerce systems. It was created by Piotr and Tomasz Karwatka, the founders of Vue Storefront. Unlike Odoo, which is a ready-made ERP, Open Mercato is a framework with an AI-first architecture that lets you build systems tailored to individual needs.
Will AI replace Odoo developers?
No. AI changes the developer’s role: from writing boilerplate to design, review and optimization. An experienced Odoo developer with AI is many times more productive than the same developer without it. But AI without a developer still makes mistakes, doesn’t understand the business context and is not accountable for how a production system runs.
What is vibe coding?
Vibe coding is an approach in which you describe a feature in natural language and an AI agent generates production code. In the context of ERP, it means being able to say “I need a report that shows me late payments grouped by region” and getting a working module. It requires open source code, which is why it works with Odoo but not with closed ERP systems.
What are the differences between Odoo and closed ERP systems when it comes to AI?
The key difference: Odoo (open source) gives AI agents full access to the source code, which makes it possible to analyze, generate and modify code. Closed ERP systems (SAP, Comarch, enova) only let AI interact through a limited API, with no way to read or modify the system’s internal logic.
What’s new in Odoo 19 and 20?
Odoo 19 introduced a dedicated AI app, built-in AI agents in key modules (CRM, accounting, helpdesk, HR) and the new JSON-2 API. Odoo 20, planned for September 2026, will focus on Agentic AI: proactive agents that carry out business processes autonomously without constant human intervention.
How much does an Odoo implementation with AI cost?
Implementation costs depend on the scale of the project and the scope of customization. Using AI agents in the development process can significantly reduce the cost of the implementation phase, by an estimated 30–50% compared with the traditional approach. Read more about implementation costs in our article on Odoo implementation in Poland.
Summary
The AI era in ERP isn’t coming. It’s already here. Claude Code, Codex and Antigravity are tools that fundamentally change the economics and speed of business system development. But these tools need open source code, and that is exactly why open source ERP like Odoo is winning.
For companies, this means a simple choice: invest in a platform that can take full advantage of the AI revolution, or stay with a closed system that AI cannot access? The answer, in my view, is obvious.
At Macopedia we help companies make this decision and carry it out. We have been in business since 2012, we have a team of more than 40 specialists and growing expertise in AI-assisted development, so we are ready for this new era.
About the author: Tomasz Grzemski is CEO and co-founder of Macopedia, a Poznań-based technology agency specializing in PIM, e-commerce and ERP systems. For 14 years he has been helping B2B companies build and develop business systems. You can hear more about Macopedia’s approach to Odoo and AI in his talk at SGC 2026, coming soon to the Macopedia YouTube channel.

Co-founder and CEO of Macopedia, Tomasz is an expert in e-commerce, PIM, WMS, and ERP solutions. For over 15 years, he has been shaping the e-commerce market, driving digital transformation for numerous companies and implementing innovative technological solutions. His articles provide strategic and practical insights for businesses aiming to optimize processes and achieve growth in the digital world.
More from this author →
