How to access a staging or test database in Odoo
Want to try out a new process or setting without risking your live data?
Introduction
Every change to your ERP carries some risk. A new automation, a different tax setting or a bulk import might behave differently from what you expect, and in your live system the consequences are real. That's why it's good practice to test changes in a separate copy of your database first. In Odoo this is often called a test, duplicate or staging database. In this guide we'll explain what it is, how to create one depending on how your Odoo is hosted, and how to use it safely.
What is a test database?
A test database is a copy of your live (production) Odoo database. It contains the same data, settings and apps, but anything you do in it has no effect on your live system.
How you get one depends on your hosting:
- Odoo Online: you duplicate your database from the Odoo database manager.
- Odoo.sh: you use staging branches, which give you a fresh copy of production data whenever you build them.
- Self-hosted (on-premise): your administrator duplicates the database from the server's database manager.
Odoo also creates a separate test database for you when you request an upgrade to a new version, so you can check everything before upgrading your live system.
Step-by-step guide
Step 1: Check how your Odoo is hosted
If you're not sure, ask your administrator or your Odoo partner. Your database address often gives a clue: addresses ending in .odoo.com are usually Odoo Online, while Odoo.sh projects are managed through the Odoo.sh dashboard.
Step 2a: Create a test database on Odoo Online
- Go to the database manager at odoo.com/my/databases and sign in as the database administrator.
- Select your database and click Duplicate.
- Enter a New name for the copy.
- Leave For testing purposes ticked. This switches off external actions, such as sending emails, taking payments or sending delivery orders, so nothing reaches customers or suppliers by mistake.
- Click Duplicate.
The copy appears in your database list. Duplicates expire after 15 days, and you can create up to five per database.
Step 2b: Use a staging database on Odoo.sh
- Open your project in the Odoo.sh dashboard.
- Go to the Staging stage, or create a staging branch from production.
- Each build creates a copy of your production database, with emails and other external actions disabled.
- Click Connect to open the staging database.
Staging is where your partner tests new custom modules and configuration before they're merged into production.
Step 3: Make it obvious you're in a test database
Before you start, check you're in the right place. Test copies usually show a banner or a different address. Bookmark the test address separately from your live one to avoid confusion.
Step 4: Test, then repeat in live
Try out your change, check the results and note exactly what you did. Changes made in a test database don't carry across, so once you're happy, repeat them in your live database or ask your partner to deploy them.
Common use cases
- New processes: try a new approval workflow or warehouse route before rolling it out.
- Data imports: test a large import file to check the results before loading it into live.
- Training: let new users practise without affecting real records.
- Upgrades: check reports, customisations and integrations on the new version before you switch.
Tips for success
- Keep 'For testing purposes' switched on. It's your safety net against accidental emails and payments.
- Refresh regularly. Test copies quickly go out of date, so create a fresh one before each significant test.
- Never enter real transactions in a test database. Anything recorded there won't appear in your live accounts.
Why test in Odoo before changing live?
- Lower risk: mistakes in a test database cost nothing.
- Real data: you test against your actual configuration, not demo data.
- Safe by default: external actions are disabled on test copies.
- Confidence: you go live knowing a change works as expected.
A few minutes testing can save hours of putting things right afterwards.
Final thoughts
A test database is one of the simplest ways to protect your live Odoo system. Whether you're on Odoo Online, Odoo.sh or self-hosting, getting into the habit of testing changes first will make every improvement smoother. If you'd like help planning changes, testing new functionality or managing an upgrade, our team can help.
