SlideShare a Scribd company logo
1 of 14
BEST PRACTICES ON
HOW TO IMPORT DATA
INTO OPENERP
Why you should love CSV Import
Cyril MORISSE ( @cmorisse )
Introduction
 With Test Driven Development and Data Migration,
we need to gather and enter real data owned by
users
 We need a data format within user’s reach
(compared to XML)
 As of version 7.0 OpenERP has redesigned the
import system (“base_import” module):
 It has nearly everything right out of the box
 Only missing feature is user oriented documentation
 This talk is an overview of the module
Installation
 Export functionality is available right out of the box
 BUT import functionality must be installed:
 Import is covered by “base_import” module
 Import must be installed via Settings / Configuration /
General Settings
 Then “Import” link is available in all list/tree views
CSV import issues
 When importing data using CSV, you will
face 3 main issues:
Identify the fields required for an import
Understand “OpenERP External IDs”
Understand how to import the different type
of fields
Simple fields ( date, text, numbers, boolean,…)
Relational fields:
 Many2many
 Many2One
 One2many
Identify fields to import
 To identify the columns required to import an
object:
1. Activate “Developer Mode”
2. Write down all the fields you must enter manually
3. Export a file with all these fields
4. Delete values in the id column then re-import the
file to check everything is ok
5. If a column is missing ; do it again from step 3 and
add the column
Understand IDs
 Example Product categories
 CSV Import allows User Defined External IDs
 External IDs are symbolic names for records
 Format is module_name.id_name
Understand IDs (continued)
 User defined IDs are saved in the database and can be
retrieved via:
 Settings / Technical / Sequences & Identifiers / External Identifiers
Understand IDs (end)
 User defined IDs allow to manage Import / Update of data
 During import:
 If a record exists with this ID, OpenERP will update the record
 If no record exists with this ID, OpenERP will create a new record
 Export IDs
 During Export, OpenERP creates an export ID for all records without
IDs (manually created records)
 In the database all External IDs are stored in table ir_model_data
Import simple Fields
Field type Cell content Example
char, text Content surrounded by “ “This is a text ""value”"."
float Number with . as decimal
separator
3.15
boolean True or False “0” or 0 or “False” or False
or “1” or 1 or “True” or True
date YYYY-MM-DD 2013-06-10
datetime YYYY-MM-DD HH:MM:SS 2013-06-10 07:07
selection Value as given by
“developer mode” inspector
reference Value in database is
“object,id”
Import relations: Many2One
 Many2one
 This is the simplest relation to import in CSV
 Just use id of referenced object
id
parent_id
product_category
...
Import relations: Many2Many
 Eg. Customer Tags
 Many2many involves 3 tables
 Really simple in CSV ; enter all values separated by
comma with no space
...
id
res_partner
id
...
res_partner_category
category_idpartner_id
res_partner_res_partner_category_rel
Import relations: One2Many
 Eg. Quotations/ Quotations Lines
 In CSV: Enter lines while you don’t repeat header object fields
 Child objects column format is
“one2many_fieldname/child_object_field”
...
id
sale_order
id
order_id
sale_order_line
...
Integrate CSV in your development
workflow
 Create a set of shared Google Spreadsheet that your
users will complete with project data
 Organize your OpenERP project in 3 modules:
 project_core with code and technical parameters
 project_data : will contains only data in CSV files
 project_test : contains your test code and test specific data
 Use a tool to automate export and download of the
Google Spreadsheet into the project_data module
 http://bitbucket.org/cmorisse/edgdd
 Your users will be able to “cooperatively” enter their
data and you will be able to seamlessly integrate and
use this data in your project
More information?
www.audaxis.com
Contact us
openerp@audaxis.com
14
Visit our booth at OpenERP Community Days in Hall K

More Related Content

What's hot

Oracle Forms Triggers
Oracle Forms TriggersOracle Forms Triggers
Oracle Forms TriggersSekhar Byna
 
The Odoo JS Framework
The Odoo JS FrameworkThe Odoo JS Framework
The Odoo JS FrameworkOdoo
 
Purchase (PO) Receiving Options or Types
Purchase (PO) Receiving Options or TypesPurchase (PO) Receiving Options or Types
Purchase (PO) Receiving Options or TypesSubramanyam Yadav
 
What are Wizards - Defining and Launching in Odoo 15Wizards - Defining and La...
What are Wizards - Defining and Launching in Odoo 15Wizards - Defining and La...What are Wizards - Defining and Launching in Odoo 15Wizards - Defining and La...
What are Wizards - Defining and Launching in Odoo 15Wizards - Defining and La...Celine George
 
Oracle Forms : Multiple Forms
Oracle Forms : Multiple FormsOracle Forms : Multiple Forms
Oracle Forms : Multiple FormsSekhar Byna
 
PHP Unit 3 functions_in_php_2
PHP Unit 3 functions_in_php_2PHP Unit 3 functions_in_php_2
PHP Unit 3 functions_in_php_2Kumar
 
How to Import Your Bank Statements in Odoo 15 Accounting
How to Import Your Bank Statements in Odoo 15 AccountingHow to Import Your Bank Statements in Odoo 15 Accounting
How to Import Your Bank Statements in Odoo 15 AccountingCeline George
 
Asynchronous JS in Odoo
Asynchronous JS in OdooAsynchronous JS in Odoo
Asynchronous JS in OdooOdoo
 
Deploying & Scaling your Odoo Server
Deploying & Scaling your Odoo ServerDeploying & Scaling your Odoo Server
Deploying & Scaling your Odoo ServerOdoo
 
Oracle SCM Functional Interview Questions & Answers - Order Management Module...
Oracle SCM Functional Interview Questions & Answers - Order Management Module...Oracle SCM Functional Interview Questions & Answers - Order Management Module...
Oracle SCM Functional Interview Questions & Answers - Order Management Module...Boopathy CS
 
Introduction to Sharding
Introduction to ShardingIntroduction to Sharding
Introduction to ShardingMongoDB
 
Intro To MongoDB
Intro To MongoDBIntro To MongoDB
Intro To MongoDBAlex Sharp
 
Set Default Values to Fields in Odoo 15
Set Default Values to Fields in Odoo 15Set Default Values to Fields in Odoo 15
Set Default Values to Fields in Odoo 15Celine George
 
Oracle Forms: create debug triggers
Oracle Forms: create debug triggersOracle Forms: create debug triggers
Oracle Forms: create debug triggersSekhar Byna
 
Oracle EBS R12 Audit trial
Oracle EBS R12 Audit trialOracle EBS R12 Audit trial
Oracle EBS R12 Audit trialFeras Ahmad
 
Oracle R12 SCM Functional Interview Questions - Order Management,
Oracle R12 SCM Functional Interview Questions - Order Management, Oracle R12 SCM Functional Interview Questions - Order Management,
Oracle R12 SCM Functional Interview Questions - Order Management, Boopathy CS
 
Oracle Forms Triggers
Oracle Forms TriggersOracle Forms Triggers
Oracle Forms TriggersSekhar Byna
 
What is Computed Fields and @api Depends in Odoo 15
What is Computed Fields and @api Depends in Odoo 15What is Computed Fields and @api Depends in Odoo 15
What is Computed Fields and @api Depends in Odoo 15Celine George
 

What's hot (20)

Oracle Forms Triggers
Oracle Forms TriggersOracle Forms Triggers
Oracle Forms Triggers
 
The Odoo JS Framework
The Odoo JS FrameworkThe Odoo JS Framework
The Odoo JS Framework
 
Purchase (PO) Receiving Options or Types
Purchase (PO) Receiving Options or TypesPurchase (PO) Receiving Options or Types
Purchase (PO) Receiving Options or Types
 
What are Wizards - Defining and Launching in Odoo 15Wizards - Defining and La...
What are Wizards - Defining and Launching in Odoo 15Wizards - Defining and La...What are Wizards - Defining and Launching in Odoo 15Wizards - Defining and La...
What are Wizards - Defining and Launching in Odoo 15Wizards - Defining and La...
 
Oracle Forms : Multiple Forms
Oracle Forms : Multiple FormsOracle Forms : Multiple Forms
Oracle Forms : Multiple Forms
 
Introduction to JSON & AJAX
Introduction to JSON & AJAXIntroduction to JSON & AJAX
Introduction to JSON & AJAX
 
PHP Unit 3 functions_in_php_2
PHP Unit 3 functions_in_php_2PHP Unit 3 functions_in_php_2
PHP Unit 3 functions_in_php_2
 
How to Import Your Bank Statements in Odoo 15 Accounting
How to Import Your Bank Statements in Odoo 15 AccountingHow to Import Your Bank Statements in Odoo 15 Accounting
How to Import Your Bank Statements in Odoo 15 Accounting
 
Asynchronous JS in Odoo
Asynchronous JS in OdooAsynchronous JS in Odoo
Asynchronous JS in Odoo
 
Deploying & Scaling your Odoo Server
Deploying & Scaling your Odoo ServerDeploying & Scaling your Odoo Server
Deploying & Scaling your Odoo Server
 
Oracle SCM Functional Interview Questions & Answers - Order Management Module...
Oracle SCM Functional Interview Questions & Answers - Order Management Module...Oracle SCM Functional Interview Questions & Answers - Order Management Module...
Oracle SCM Functional Interview Questions & Answers - Order Management Module...
 
Accounting in Oracle Inventory
Accounting in Oracle InventoryAccounting in Oracle Inventory
Accounting in Oracle Inventory
 
Introduction to Sharding
Introduction to ShardingIntroduction to Sharding
Introduction to Sharding
 
Intro To MongoDB
Intro To MongoDBIntro To MongoDB
Intro To MongoDB
 
Set Default Values to Fields in Odoo 15
Set Default Values to Fields in Odoo 15Set Default Values to Fields in Odoo 15
Set Default Values to Fields in Odoo 15
 
Oracle Forms: create debug triggers
Oracle Forms: create debug triggersOracle Forms: create debug triggers
Oracle Forms: create debug triggers
 
Oracle EBS R12 Audit trial
Oracle EBS R12 Audit trialOracle EBS R12 Audit trial
Oracle EBS R12 Audit trial
 
Oracle R12 SCM Functional Interview Questions - Order Management,
Oracle R12 SCM Functional Interview Questions - Order Management, Oracle R12 SCM Functional Interview Questions - Order Management,
Oracle R12 SCM Functional Interview Questions - Order Management,
 
Oracle Forms Triggers
Oracle Forms TriggersOracle Forms Triggers
Oracle Forms Triggers
 
What is Computed Fields and @api Depends in Odoo 15
What is Computed Fields and @api Depends in Odoo 15What is Computed Fields and @api Depends in Odoo 15
What is Computed Fields and @api Depends in Odoo 15
 

Similar to How to Import data into OpenERP V7

How to import datas in OpenERP 7.0
How to import datas in OpenERP 7.0How to import datas in OpenERP 7.0
How to import datas in OpenERP 7.0Jyothi Lekshmi
 
Final report mobile shop
Final report   mobile shopFinal report   mobile shop
Final report mobile shopViditsingh22
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfoliomwillmer
 
XPages Workshop: Concepts And Exercises
XPages Workshop:   Concepts And ExercisesXPages Workshop:   Concepts And Exercises
XPages Workshop: Concepts And Exercisesddrschiw
 
Dbva dotnet programmer_guide_chapter8
Dbva dotnet programmer_guide_chapter8Dbva dotnet programmer_guide_chapter8
Dbva dotnet programmer_guide_chapter8Shakeel Mujahid
 
ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENTLori Moore
 
A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010Abram John Limpin
 
UI5Con presentation on UI5 OData V4 Model
UI5Con presentation on UI5 OData V4 ModelUI5Con presentation on UI5 OData V4 Model
UI5Con presentation on UI5 OData V4 ModelPatric Ksinsik
 
AspMVC4 start101
AspMVC4 start101AspMVC4 start101
AspMVC4 start101Rich Helton
 
Overview of CSharp MVC3 and EF4
Overview of CSharp MVC3 and EF4Overview of CSharp MVC3 and EF4
Overview of CSharp MVC3 and EF4Rich Helton
 
Databases, SQL and MS SQL Server
Databases, SQL and MS SQL ServerDatabases, SQL and MS SQL Server
Databases, SQL and MS SQL ServerDoncho Minkov
 
Web forms and html lecture Number 4
Web forms and html lecture Number 4Web forms and html lecture Number 4
Web forms and html lecture Number 4Mudasir Syed
 
OBIEE publisher with Report creation - Tutorial
OBIEE publisher with Report creation - TutorialOBIEE publisher with Report creation - Tutorial
OBIEE publisher with Report creation - Tutorialonlinetrainingplacements
 
Oracle data integrator project
Oracle data integrator projectOracle data integrator project
Oracle data integrator projectAmit Sharma
 

Similar to How to Import data into OpenERP V7 (20)

How to import datas in OpenERP 7.0
How to import datas in OpenERP 7.0How to import datas in OpenERP 7.0
How to import datas in OpenERP 7.0
 
Final report mobile shop
Final report   mobile shopFinal report   mobile shop
Final report mobile shop
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfolio
 
XPages Workshop: Concepts And Exercises
XPages Workshop:   Concepts And ExercisesXPages Workshop:   Concepts And Exercises
XPages Workshop: Concepts And Exercises
 
Dbva dotnet programmer_guide_chapter8
Dbva dotnet programmer_guide_chapter8Dbva dotnet programmer_guide_chapter8
Dbva dotnet programmer_guide_chapter8
 
ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENT
 
A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010
 
UI5Con presentation on UI5 OData V4 Model
UI5Con presentation on UI5 OData V4 ModelUI5Con presentation on UI5 OData V4 Model
UI5Con presentation on UI5 OData V4 Model
 
Php mysql
Php mysqlPhp mysql
Php mysql
 
AspMVC4 start101
AspMVC4 start101AspMVC4 start101
AspMVC4 start101
 
Overview of CSharp MVC3 and EF4
Overview of CSharp MVC3 and EF4Overview of CSharp MVC3 and EF4
Overview of CSharp MVC3 and EF4
 
data binding.docx
data binding.docxdata binding.docx
data binding.docx
 
Databases, SQL and MS SQL Server
Databases, SQL and MS SQL ServerDatabases, SQL and MS SQL Server
Databases, SQL and MS SQL Server
 
Web forms and html lecture Number 4
Web forms and html lecture Number 4Web forms and html lecture Number 4
Web forms and html lecture Number 4
 
Lecture9
Lecture9Lecture9
Lecture9
 
Ado Presentation
Ado PresentationAdo Presentation
Ado Presentation
 
OBIEE publisher with Report creation - Tutorial
OBIEE publisher with Report creation - TutorialOBIEE publisher with Report creation - Tutorial
OBIEE publisher with Report creation - Tutorial
 
Django forms
Django formsDjango forms
Django forms
 
Oracle data integrator project
Oracle data integrator projectOracle data integrator project
Oracle data integrator project
 
Apps1
Apps1Apps1
Apps1
 

More from Audaxis

Grand Nord IT Days 2015 : Comment les solutions Open Source peuvent-elles re...
Grand Nord IT Days 2015 : Comment les solutions Open Source peuvent-elles re...Grand Nord IT Days 2015 : Comment les solutions Open Source peuvent-elles re...
Grand Nord IT Days 2015 : Comment les solutions Open Source peuvent-elles re...Audaxis
 
Tout savoir sur les ERP Open Source
Tout savoir sur les ERP Open SourceTout savoir sur les ERP Open Source
Tout savoir sur les ERP Open SourceAudaxis
 
App mobile force de vente - ERP Compiere et Odoo
App mobile force de vente - ERP Compiere et OdooApp mobile force de vente - ERP Compiere et Odoo
App mobile force de vente - ERP Compiere et OdooAudaxis
 
Odoo Open days 2014 Odoo Tablet Application for Sales Representative powered ...
Odoo Open days 2014 Odoo Tablet Application for Sales Representative powered ...Odoo Open days 2014 Odoo Tablet Application for Sales Representative powered ...
Odoo Open days 2014 Odoo Tablet Application for Sales Representative powered ...Audaxis
 
Open Days 2014 Odoo "Reflex WMS" connector
Open Days 2014 Odoo "Reflex WMS" connectorOpen Days 2014 Odoo "Reflex WMS" connector
Open Days 2014 Odoo "Reflex WMS" connectorAudaxis
 
Open Days 2014 Odoo Architecture and readiness for web integration
Open Days 2014 Odoo Architecture and readiness for web integrationOpen Days 2014 Odoo Architecture and readiness for web integration
Open Days 2014 Odoo Architecture and readiness for web integrationAudaxis
 
La BI au service de métiers en pleine mutation
La BI au service de métiers en pleine mutationLa BI au service de métiers en pleine mutation
La BI au service de métiers en pleine mutationAudaxis
 
OpenERP, l'ERP open source dernière génération
OpenERP, l'ERP open source dernière générationOpenERP, l'ERP open source dernière génération
OpenERP, l'ERP open source dernière générationAudaxis
 
dpi24/7, la plateforme de publication digitale pour les groupes de presse
dpi24/7, la plateforme de publication digitale pour les groupes de pressedpi24/7, la plateforme de publication digitale pour les groupes de presse
dpi24/7, la plateforme de publication digitale pour les groupes de presseAudaxis
 
Compiere, l'ERP open source qui s'adapte à votre métier
Compiere, l'ERP open source qui s'adapte à votre métierCompiere, l'ERP open source qui s'adapte à votre métier
Compiere, l'ERP open source qui s'adapte à votre métierAudaxis
 
Jaspersoft Intelligence Inside avec Audaxis
Jaspersoft Intelligence Inside avec AudaxisJaspersoft Intelligence Inside avec Audaxis
Jaspersoft Intelligence Inside avec AudaxisAudaxis
 
Comment faire converger e-commerce et vente en magasin?
Comment faire converger e-commerce et vente en magasin?Comment faire converger e-commerce et vente en magasin?
Comment faire converger e-commerce et vente en magasin?Audaxis
 
Projet ERP Compiere auprès d'une organisation patronale
Projet ERP Compiere auprès d'une organisation patronaleProjet ERP Compiere auprès d'une organisation patronale
Projet ERP Compiere auprès d'une organisation patronaleAudaxis
 
Retour d'expérience de Laser Loyalty sur le choix de l'ERP Compiere
Retour d'expérience de Laser Loyalty sur le choix de l'ERP CompiereRetour d'expérience de Laser Loyalty sur le choix de l'ERP Compiere
Retour d'expérience de Laser Loyalty sur le choix de l'ERP CompiereAudaxis
 
Gestion des abonnements du groupe Rossel avec Compiere
Gestion des abonnements du groupe Rossel avec CompiereGestion des abonnements du groupe Rossel avec Compiere
Gestion des abonnements du groupe Rossel avec CompiereAudaxis
 
L'ERP Compiere choisit par une enseigne de produits de décoration
L'ERP Compiere choisit par une enseigne de produits de décorationL'ERP Compiere choisit par une enseigne de produits de décoration
L'ERP Compiere choisit par une enseigne de produits de décorationAudaxis
 
Le Centre Hospitalier Universitaire Tivoli de l'Open Source Compiere
Le Centre Hospitalier Universitaire Tivoli de l'Open Source CompiereLe Centre Hospitalier Universitaire Tivoli de l'Open Source Compiere
Le Centre Hospitalier Universitaire Tivoli de l'Open Source CompiereAudaxis
 
Site e-commerce intégré à l'ERP Compiere pour l'ISO
Site e-commerce intégré à l'ERP Compiere pour l'ISOSite e-commerce intégré à l'ERP Compiere pour l'ISO
Site e-commerce intégré à l'ERP Compiere pour l'ISOAudaxis
 
Projet Jaspersoft BI pour une société multi-enseignes
Projet Jaspersoft BI pour une société multi-enseignesProjet Jaspersoft BI pour une société multi-enseignes
Projet Jaspersoft BI pour une société multi-enseignesAudaxis
 
Drupal, rotative numérique pour un groupe de presse
Drupal, rotative numérique pour un groupe de presseDrupal, rotative numérique pour un groupe de presse
Drupal, rotative numérique pour un groupe de presseAudaxis
 

More from Audaxis (20)

Grand Nord IT Days 2015 : Comment les solutions Open Source peuvent-elles re...
Grand Nord IT Days 2015 : Comment les solutions Open Source peuvent-elles re...Grand Nord IT Days 2015 : Comment les solutions Open Source peuvent-elles re...
Grand Nord IT Days 2015 : Comment les solutions Open Source peuvent-elles re...
 
Tout savoir sur les ERP Open Source
Tout savoir sur les ERP Open SourceTout savoir sur les ERP Open Source
Tout savoir sur les ERP Open Source
 
App mobile force de vente - ERP Compiere et Odoo
App mobile force de vente - ERP Compiere et OdooApp mobile force de vente - ERP Compiere et Odoo
App mobile force de vente - ERP Compiere et Odoo
 
Odoo Open days 2014 Odoo Tablet Application for Sales Representative powered ...
Odoo Open days 2014 Odoo Tablet Application for Sales Representative powered ...Odoo Open days 2014 Odoo Tablet Application for Sales Representative powered ...
Odoo Open days 2014 Odoo Tablet Application for Sales Representative powered ...
 
Open Days 2014 Odoo "Reflex WMS" connector
Open Days 2014 Odoo "Reflex WMS" connectorOpen Days 2014 Odoo "Reflex WMS" connector
Open Days 2014 Odoo "Reflex WMS" connector
 
Open Days 2014 Odoo Architecture and readiness for web integration
Open Days 2014 Odoo Architecture and readiness for web integrationOpen Days 2014 Odoo Architecture and readiness for web integration
Open Days 2014 Odoo Architecture and readiness for web integration
 
La BI au service de métiers en pleine mutation
La BI au service de métiers en pleine mutationLa BI au service de métiers en pleine mutation
La BI au service de métiers en pleine mutation
 
OpenERP, l'ERP open source dernière génération
OpenERP, l'ERP open source dernière générationOpenERP, l'ERP open source dernière génération
OpenERP, l'ERP open source dernière génération
 
dpi24/7, la plateforme de publication digitale pour les groupes de presse
dpi24/7, la plateforme de publication digitale pour les groupes de pressedpi24/7, la plateforme de publication digitale pour les groupes de presse
dpi24/7, la plateforme de publication digitale pour les groupes de presse
 
Compiere, l'ERP open source qui s'adapte à votre métier
Compiere, l'ERP open source qui s'adapte à votre métierCompiere, l'ERP open source qui s'adapte à votre métier
Compiere, l'ERP open source qui s'adapte à votre métier
 
Jaspersoft Intelligence Inside avec Audaxis
Jaspersoft Intelligence Inside avec AudaxisJaspersoft Intelligence Inside avec Audaxis
Jaspersoft Intelligence Inside avec Audaxis
 
Comment faire converger e-commerce et vente en magasin?
Comment faire converger e-commerce et vente en magasin?Comment faire converger e-commerce et vente en magasin?
Comment faire converger e-commerce et vente en magasin?
 
Projet ERP Compiere auprès d'une organisation patronale
Projet ERP Compiere auprès d'une organisation patronaleProjet ERP Compiere auprès d'une organisation patronale
Projet ERP Compiere auprès d'une organisation patronale
 
Retour d'expérience de Laser Loyalty sur le choix de l'ERP Compiere
Retour d'expérience de Laser Loyalty sur le choix de l'ERP CompiereRetour d'expérience de Laser Loyalty sur le choix de l'ERP Compiere
Retour d'expérience de Laser Loyalty sur le choix de l'ERP Compiere
 
Gestion des abonnements du groupe Rossel avec Compiere
Gestion des abonnements du groupe Rossel avec CompiereGestion des abonnements du groupe Rossel avec Compiere
Gestion des abonnements du groupe Rossel avec Compiere
 
L'ERP Compiere choisit par une enseigne de produits de décoration
L'ERP Compiere choisit par une enseigne de produits de décorationL'ERP Compiere choisit par une enseigne de produits de décoration
L'ERP Compiere choisit par une enseigne de produits de décoration
 
Le Centre Hospitalier Universitaire Tivoli de l'Open Source Compiere
Le Centre Hospitalier Universitaire Tivoli de l'Open Source CompiereLe Centre Hospitalier Universitaire Tivoli de l'Open Source Compiere
Le Centre Hospitalier Universitaire Tivoli de l'Open Source Compiere
 
Site e-commerce intégré à l'ERP Compiere pour l'ISO
Site e-commerce intégré à l'ERP Compiere pour l'ISOSite e-commerce intégré à l'ERP Compiere pour l'ISO
Site e-commerce intégré à l'ERP Compiere pour l'ISO
 
Projet Jaspersoft BI pour une société multi-enseignes
Projet Jaspersoft BI pour une société multi-enseignesProjet Jaspersoft BI pour une société multi-enseignes
Projet Jaspersoft BI pour une société multi-enseignes
 
Drupal, rotative numérique pour un groupe de presse
Drupal, rotative numérique pour un groupe de presseDrupal, rotative numérique pour un groupe de presse
Drupal, rotative numérique pour un groupe de presse
 

Recently uploaded

Bird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystemBird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystemAsko Soukka
 
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...Aggregage
 
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Will Schroeder
 
Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)Commit University
 
Building AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxBuilding AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxUdaiappa Ramachandran
 
Videogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdfVideogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdfinfogdgmi
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6DianaGray10
 
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDEADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDELiveplex
 
Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxIntroduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxMatsuo Lab
 
20230202 - Introduction to tis-py
20230202 - Introduction to tis-py20230202 - Introduction to tis-py
20230202 - Introduction to tis-pyJamie (Taka) Wang
 
COMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a WebsiteCOMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a Websitedgelyza
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8DianaGray10
 
Comparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioComparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioChristian Posta
 
Linked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond OntologiesLinked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond OntologiesDavid Newbury
 
VoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXVoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXTarek Kalaji
 
Empowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintEmpowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintMahmoud Rabie
 
Designing A Time bound resource download URL
Designing A Time bound resource download URLDesigning A Time bound resource download URL
Designing A Time bound resource download URLRuncy Oommen
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1DianaGray10
 

Recently uploaded (20)

Bird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystemBird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystem
 
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
 
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
 
Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)
 
Building AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxBuilding AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptx
 
Videogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdfVideogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdf
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6
 
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDEADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
 
Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxIntroduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptx
 
20230104 - machine vision
20230104 - machine vision20230104 - machine vision
20230104 - machine vision
 
20230202 - Introduction to tis-py
20230202 - Introduction to tis-py20230202 - Introduction to tis-py
20230202 - Introduction to tis-py
 
COMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a WebsiteCOMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a Website
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8
 
201610817 - edge part1
201610817 - edge part1201610817 - edge part1
201610817 - edge part1
 
Comparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioComparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and Istio
 
Linked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond OntologiesLinked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond Ontologies
 
VoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXVoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBX
 
Empowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintEmpowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership Blueprint
 
Designing A Time bound resource download URL
Designing A Time bound resource download URLDesigning A Time bound resource download URL
Designing A Time bound resource download URL
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
 

How to Import data into OpenERP V7

  • 1. BEST PRACTICES ON HOW TO IMPORT DATA INTO OPENERP Why you should love CSV Import Cyril MORISSE ( @cmorisse )
  • 2. Introduction  With Test Driven Development and Data Migration, we need to gather and enter real data owned by users  We need a data format within user’s reach (compared to XML)  As of version 7.0 OpenERP has redesigned the import system (“base_import” module):  It has nearly everything right out of the box  Only missing feature is user oriented documentation  This talk is an overview of the module
  • 3. Installation  Export functionality is available right out of the box  BUT import functionality must be installed:  Import is covered by “base_import” module  Import must be installed via Settings / Configuration / General Settings  Then “Import” link is available in all list/tree views
  • 4. CSV import issues  When importing data using CSV, you will face 3 main issues: Identify the fields required for an import Understand “OpenERP External IDs” Understand how to import the different type of fields Simple fields ( date, text, numbers, boolean,…) Relational fields:  Many2many  Many2One  One2many
  • 5. Identify fields to import  To identify the columns required to import an object: 1. Activate “Developer Mode” 2. Write down all the fields you must enter manually 3. Export a file with all these fields 4. Delete values in the id column then re-import the file to check everything is ok 5. If a column is missing ; do it again from step 3 and add the column
  • 6. Understand IDs  Example Product categories  CSV Import allows User Defined External IDs  External IDs are symbolic names for records  Format is module_name.id_name
  • 7. Understand IDs (continued)  User defined IDs are saved in the database and can be retrieved via:  Settings / Technical / Sequences & Identifiers / External Identifiers
  • 8. Understand IDs (end)  User defined IDs allow to manage Import / Update of data  During import:  If a record exists with this ID, OpenERP will update the record  If no record exists with this ID, OpenERP will create a new record  Export IDs  During Export, OpenERP creates an export ID for all records without IDs (manually created records)  In the database all External IDs are stored in table ir_model_data
  • 9. Import simple Fields Field type Cell content Example char, text Content surrounded by “ “This is a text ""value”"." float Number with . as decimal separator 3.15 boolean True or False “0” or 0 or “False” or False or “1” or 1 or “True” or True date YYYY-MM-DD 2013-06-10 datetime YYYY-MM-DD HH:MM:SS 2013-06-10 07:07 selection Value as given by “developer mode” inspector reference Value in database is “object,id”
  • 10. Import relations: Many2One  Many2one  This is the simplest relation to import in CSV  Just use id of referenced object id parent_id product_category ...
  • 11. Import relations: Many2Many  Eg. Customer Tags  Many2many involves 3 tables  Really simple in CSV ; enter all values separated by comma with no space ... id res_partner id ... res_partner_category category_idpartner_id res_partner_res_partner_category_rel
  • 12. Import relations: One2Many  Eg. Quotations/ Quotations Lines  In CSV: Enter lines while you don’t repeat header object fields  Child objects column format is “one2many_fieldname/child_object_field” ... id sale_order id order_id sale_order_line ...
  • 13. Integrate CSV in your development workflow  Create a set of shared Google Spreadsheet that your users will complete with project data  Organize your OpenERP project in 3 modules:  project_core with code and technical parameters  project_data : will contains only data in CSV files  project_test : contains your test code and test specific data  Use a tool to automate export and download of the Google Spreadsheet into the project_data module  http://bitbucket.org/cmorisse/edgdd  Your users will be able to “cooperatively” enter their data and you will be able to seamlessly integrate and use this data in your project
  • 14. More information? www.audaxis.com Contact us openerp@audaxis.com 14 Visit our booth at OpenERP Community Days in Hall K