Picture a distribution company that has just upgraded Odoo. Their team spent two weeks manually re-testing sales and invoicing, and everything passed.
On day three in production, warehouse staff notice that a custom module has quietly stopped reserving stock for orders placed through the website. Nobody tested that path, because nobody remembered it existed.
That is the real case for Odoo automation testing. Odoo is a set of tightly connected apps, so a change in one module can break a workflow three modules away. This guide covers Odoo’s own testing tools, when you need external tools like Playwright, and how to build a suite that survives upgrades.
Odoo automation testing uses scripts to check Odoo workflows, such as quote to invoice or purchase to stock, automatically after every change or upgrade. Odoo ships its own tools (Python tests, UI tours, and the Hoot JavaScript framework), and most QA teams add Playwright for end-to-end, cross-browser, and multi-role tests.
Odoo automation testing is the practice of running scripted checks against an Odoo instance to confirm that business workflows, custom modules, integrations, and user roles still work after code changes, configuration changes, or version upgrades. It replaces slow, repeated manual regression testing with fast, repeatable runs that fit into a CI/CD pipeline.
Our webinar on why software companies need test automation explains the business case in more depth, with examples beyond ERP.
Odoo has a capable built-in testing framework, and it covers more than most teams realise:
The official Odoo testing documentation explains how to write and run each type.
These tools are ideal for developers working inside the Odoo codebase. QA teams usually add an external framework when they need black-box tests written outside the code, wider browser coverage, or richer reporting.
| Need | Odoo built-in tools | External tools (Playwright, Cypress, | Selenium) |
|---|---|---|---|
| Who writes the tests | Odoo developers, inside module code | QA engineers, outside the Odoo codebase | |
| Unit and model logic | Strong (Python tests, Hoot) | Not their purpose | |
| End-to-end user journeys | Possible with tours | Strong, with richer debugging | |
| Cross-browser coverage | Limited to the test browser | Chromium, Firefox, and WebKit with Playwright | |
| Multiple users and tabs in one test | Harder | Straightforward with Playwright | |
| CI reports, traces, screenshots | Basic | Detailed reports, traces, and videos | |
| Testing a hosted Odoo you cannot modify | Not possible | Works against any URL |
Most mature teams use both: developers keep Python tests and tours next to their code, and QA owns an external end-to-end suite.
Organising tests into suites makes them faster to run and easier to maintain. The most useful suites are:
For an example of how this kind of suite pays off on a real ERP project, see our ERP software testing case study.
Playwright is an open-source framework from Microsoft and the strongest general choice for Odoo. It waits automatically for elements and network activity, which suits Odoo’s asynchronous screens, modals, and dynamic lists.
We recorded a short Odoo automation demo with Playwright and TypeScript that shows a basic flow running end to end.
Here is a simple Python example that logs in and creates a quotation:
# tests/test_quotation.py
# Labels vary by Odoo version and language; adjust to your instance.
from playwright.sync_api import Page, expect
BASE = "https://staging.example.com"
def test_sales_user_can_create_quotation(page: Page):
page.goto(f"{BASE}/web/login")
page.get_by_label("Email").fill("qa.sales@example.com")
page.get_by_label("Password").fill("test-password")
page.get_by_role("button", name="Log in").click()
page.goto(f"{BASE}/odoo/sales")
page.get_by_role("button", name="New").click()
page.get_by_label("Customer").fill("Azure Interior")
page.get_by_role("option", name="Azure Interior").first.click()
page.get_by_role("button", name="Save manually").click()
expect(page.get_by_text("Quotation", exact=True)).to_be_visible()
Cypress is easy to start with and strong for UI checks, form validation, and front-end logic in Odoo customisations. Keep its limits in mind:
| Tool | Language | Test runner | Best for |
|---|---|---|---|
| Playwright (Python) | Python | pytest with pytest- playwright | Teams that already write Odoo modules in Python |
| Playwright (TypeScript) | TypeScript or JavaScript | Playwright Test | QA teams with JavaScript skills |
| Cypress | TypeScript or JavaScript | Built in | Single-tab UI checks on custom screens |
If you want an Odoo suite built properly from the start, our Playwright automation testing service sets up the framework, page objects, and CI integration for you.
Yes, but it is rarely the most efficient choice. Selenium is still a mature, widely used tool, and it can drive Odoo’s interface. The problems are specific to how Odoo renders its screens:
If you already have a Selenium suite for Odoo, you do not need to throw it away overnight. Our post on why teams are switching from Selenium to Playwright covers how to migrate gradually.
An Odoo suite earns its keep the week of an upgrade, not the week it is written.
Our automation testing services usually start with exactly these foundations, so the suite stays reliable as your Odoo instance grows.
A small Odoo setup with standard modules can be covered by a developer and a simple Playwright suite. Outside help makes sense when you run heavily customised modules, several companies or currencies, or a major version upgrade with a fixed go-live date.
Designing that kind of ERP regression suite is the work Testvox does for growing businesses.
For GCC businesses, our post on Odoo testing services in Dubai covers local support in more detail.
Yes. Odoo includes Python test classes, UI tours for integration tests, and Hoot, a JavaScript unit testing framework for the web client.
For most teams, Playwright. It handles Odoo’s dynamic, asynchronous interface well, supports Python and TypeScript, and runs across Chromium, Firefox, and WebKit.
Yes, but Odoo’s dynamic IDs and asynchronous screens make Selenium tests harder to keep stable. Many teams move new tests to Playwright and migrate older ones gradually.
Migrate a copy of production to the new version, then run your full regression and end-to-end suites against it. Pay special attention to custom modules and third-party integrations.
A smoke suite for core workflows can be ready in one to two weeks. A full regression suite for a customised instance usually takes several weeks and grows over time.
Odoo automation testing turns upgrades and customisations from a risk into a routine. Use Odoo’s built-in tests for code-level checks, add Playwright for the journeys your business depends on, and rehearse every upgrade before your team goes live on it.
Planning an Odoo upgrade or custom module release? Talk to our automation team about a regression suite that keeps up.