i have two databases but the system is not live and there are no transactions what is the better to merge the tow data base or to create new clear one ? thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
Hi,
Merging two Odoo databases, even when running the same version, is a complex task, and there is no official one-click solution. However, various proven strategies can help you combine data intelligently depending on your needs.
1. Export / Import Selected Data (Simplest):
- Selectively merging Customers, Products, Sales Orders without disturbing existing data.
-Use built-in CSV/XML export/import:
- Export key models (e.g., res.partner, product.template, product.product, sale.order, account.move).
- Before import, clean and remap IDs, ensuring any references (like partner_id) are updated.
2- Multi-Company Consolidation (Alternative)
- If the ultimate goal is combining companies rather than merging historical data: - Configure one database as a multi-company instance.
- Migrate one DB’s data first.
- Then import the other DB’s customers, products, and transactions into the same company structure.
- Still requires export/import or scripting, but uses Odoo’s native multi-company architecture.
NOTE:-
- Back up both databases completely using pg_dump or Odoo tools.
- Set up a test environment and run the entire merge flow there first.
- Never operate directly on live databases without tested backups.
Hope it helps
There is no out-of-the-box database merge functionality in Odoo.
You are probably better off by just creating a new database and re-creating your configuration in there.
What you could do alternatively, but this depends on the data in either of the databases, is to manually export from one database and import these files into the other (i.e. Contacts, Products, etc.).
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się