Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
It makes now almost a week that I am trying to export data from one OE7 database to import it in another one. Here's my problem (I do not want to restore a Postgresql database):
- I am using OpenERP Version 7.0-20140620-231150
- I created a database, lets call it DB1, with the following Apps installed
- Project Management (which also installs the Social Network app)
- Accounting and Finance
- Sales Management
- Employee Directory
- Address Book
- However, the people for whom I am installing the database don't need all this, they only need
- Project Management (which automatically installs the Social Network app)
- Employee Directory
- Address Book
- So I created a new database, lets call it DB2, with only the 3 needed apps mentioned above
- And I thought about exporting from DB1, say the Users, and importing them in DB2
- However there always seems to be a bug at import, on the lines of: "No matching record found for external id '__export__.mail_alias_139' in field 'Alias' between rows 3 and 4"
- So I first tried to tackle each of the "issues" OE7 seems to find at import
- I spent almost an entire day doing it, diligently, until I realised that only a few columns remained but OE7 was still not happy.
- I thought that as there were more Apps in DB1, DB2 could not import the data generated in DB1 and that I was stuck with all those unwanted Apps.
- So I thought about doing the export process the other way around (DB2 to DB2):
- by creating only one user in DB2 (apart from the administrator),
- exporting the data in CSV,
- erasing the user and
- reimport it in DB2,
- but oddly enough, OE7 is creating the same kind of messages as in the original DB1 to DB2 imports...
Could anyone tell me what is going on? If the DB1 to DB2 transaction does not work, it is imaginable because the installed Apps are not the same. But come on, from DB2 to DB2, that should work...
What are the fields needed if I want to have say the following items (for the moment only Settings -> Users):
- Preferences tab
- Access Rights tab
- Human Resources
- Contact Creation
I would like to do the same with the Projects and the Human Resources Apps (the show the same kind of issues as the Users Export-Import in Settings).
Thanks in advance for any advice/help,
When you activate Developer Mode, you can hover over each field on any screen to see what the database field name is (the one that you need to select when exporting).
You should continue to work on the learning curve of importing via CSV. It works fine once you understand the way it works, but it does take work.
Database imports I would never do. XML-RPC is a fine alternative approach.
If I would be you, I would take different approaches.
1. Create a python script which will read from DB1 and send records to DB2. This should be done per model.
2. Pgadmin gives you a facility to export the SQL, this should be perfect match.
The above options are done on the background, so DB2 has the values as exactly the DB1 had.
3. View-wise bugs should be fixed as and when you face them. You should have a list of fields that are changed/removed/added on any model in v7.
Hope this helps.
We may even discuss your problems one by one.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 6/24/14, 10:58 AM|
|Seen: 3331 times|
|Last updated: 3/16/15, 8:10 AM|