Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

How to Export and Import data in OpenERP 7

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
csvimportingExporting
2 Răspunsuri
9866 Vizualizări
Imagine profil
pdeli

Dear all,

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
    • Timesheets
    • 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
    • Picture
    • Name
    • Login
    • Company
    • Active
    • Language
    • Timezone
    • Signature
  • ​Access Rights tab
    • Sales
    • Project
    • Human Resources
    • Sharing
    • Administration
    • 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,

Peter

++++

0
Imagine profil
Abandonează
Martin

I cannot remember it's name off-hand, but there is a special data table dedicated to correlating external IDs to internal IDs. If you have not addressed the problems of having that match up correctly you will fail at this. My understanding however, is that attempting to bypass the ORM layer and go directly to the database will involve you in an endless tangle of problems. The "safe" route in is via XMLRPC.

Imagine profil
Serpent Consulting Services Pvt. Ltd.
Cel mai bun răspuns

Peter,

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.

Thanks.

0
Imagine profil
Abandonează
Imagine profil
Ray Carnes
Cel mai bun răspuns

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.

0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
*This was user error please remove question*
importing Exporting
Imagine profil
0
oct. 21
59
Merge Crm Lead + Next activity .csv
csv importing
Imagine profil
1
mar. 18
4160
I want to modify CSV import for Products so I can provide images as URI's instead of Base64 strings.
csv importing
Imagine profil
Imagine profil
1
mar. 16
4133
Updating a pricelist from CSV
csv importing
Imagine profil
Imagine profil
1
mar. 15
10078
Importing products from CSV direct to Database
csv importing
Imagine profil
Imagine profil
Imagine profil
2
mar. 15
11708
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now