SlideShare a Scribd company logo
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

Odoo - Create themes for website
Odoo - Create themes for websiteOdoo - Create themes for website
Odoo - Create themes for website
Odoo
 
Impact of the New ORM on Your Modules
Impact of the New ORM on Your ModulesImpact of the New ORM on Your Modules
Impact of the New ORM on Your Modules
Odoo
 
An in Depth Journey into Odoo's ORM
An in Depth Journey into Odoo's ORMAn in Depth Journey into Odoo's ORM
An in Depth Journey into Odoo's ORM
Odoo
 
Crud tutorial en
Crud tutorial enCrud tutorial en
Crud tutorial enforkgrown
 
Owl: The New Odoo UI Framework
Owl: The New Odoo UI FrameworkOwl: The New Odoo UI Framework
Owl: The New Odoo UI Framework
Odoo
 
How to Create a l10n Payroll Structure
How to Create a l10n Payroll StructureHow to Create a l10n Payroll Structure
How to Create a l10n Payroll Structure
Odoo
 
View Inheritance in Odoo 15
View Inheritance in Odoo 15View Inheritance in Odoo 15
View Inheritance in Odoo 15
Celine George
 
How to develop automated tests
How to develop automated testsHow to develop automated tests
How to develop automated tests
Odoo
 
View Inheritance in Odoo 16
View Inheritance in Odoo 16View Inheritance in Odoo 16
View Inheritance in Odoo 16
Celine George
 
Updating Client Interface 'on change' @api.onchange in Odoo 15
Updating Client Interface 'on change' @api.onchange in Odoo 15Updating Client Interface 'on change' @api.onchange in Odoo 15
Updating Client Interface 'on change' @api.onchange in Odoo 15
Celine George
 
Deploying & Scaling your Odoo Server
Deploying & Scaling your Odoo ServerDeploying & Scaling your Odoo Server
Deploying & Scaling your Odoo Server
Odoo
 
Defining Kanban View in Odoo15 | Advanced Views
Defining Kanban View in Odoo15 | Advanced ViewsDefining Kanban View in Odoo15 | Advanced Views
Defining Kanban View in Odoo15 | Advanced Views
Celine George
 
External dependencies ,pre init hook & post init hook in odoo
External dependencies ,pre init hook & post init hook in odooExternal dependencies ,pre init hook & post init hook in odoo
External dependencies ,pre init hook & post init hook in odoo
Celine George
 
Improving the performance of Odoo deployments
Improving the performance of Odoo deploymentsImproving the performance of Odoo deployments
Improving the performance of Odoo deployments
Odoo
 
Odoo Experience 2018 - Visualizing Data in Odoo: How to Create a New View
Odoo Experience 2018 - Visualizing Data in Odoo: How to Create a New ViewOdoo Experience 2018 - Visualizing Data in Odoo: How to Create a New View
Odoo Experience 2018 - Visualizing Data in Odoo: How to Create a New View
ElínAnna Jónasdóttir
 
Odoo (Build module, Security, ORM)
Odoo (Build module, Security, ORM)Odoo (Build module, Security, ORM)
Odoo (Build module, Security, ORM)
sroo galal
 
ES6 PPT FOR 2016
ES6 PPT FOR 2016ES6 PPT FOR 2016
ES6 PPT FOR 2016
Manoj Kumar
 
Php with MYSQL Database
Php with MYSQL DatabasePhp with MYSQL Database
Php with MYSQL Database
Computer Hardware & Trouble shooting
 
How to Create Oracle Fusion BI Publisher Report Using RTF Template
How to Create Oracle Fusion BI Publisher Report Using RTF TemplateHow to Create Oracle Fusion BI Publisher Report Using RTF Template
How to Create Oracle Fusion BI Publisher Report Using RTF Template
Feras Ahmad
 
Oracle hcm cloud configuring approval workflow
Oracle hcm cloud configuring approval workflowOracle hcm cloud configuring approval workflow
Oracle hcm cloud configuring approval workflow
Feras Ahmad
 

What's hot (20)

Odoo - Create themes for website
Odoo - Create themes for websiteOdoo - Create themes for website
Odoo - Create themes for website
 
Impact of the New ORM on Your Modules
Impact of the New ORM on Your ModulesImpact of the New ORM on Your Modules
Impact of the New ORM on Your Modules
 
An in Depth Journey into Odoo's ORM
An in Depth Journey into Odoo's ORMAn in Depth Journey into Odoo's ORM
An in Depth Journey into Odoo's ORM
 
Crud tutorial en
Crud tutorial enCrud tutorial en
Crud tutorial en
 
Owl: The New Odoo UI Framework
Owl: The New Odoo UI FrameworkOwl: The New Odoo UI Framework
Owl: The New Odoo UI Framework
 
How to Create a l10n Payroll Structure
How to Create a l10n Payroll StructureHow to Create a l10n Payroll Structure
How to Create a l10n Payroll Structure
 
View Inheritance in Odoo 15
View Inheritance in Odoo 15View Inheritance in Odoo 15
View Inheritance in Odoo 15
 
How to develop automated tests
How to develop automated testsHow to develop automated tests
How to develop automated tests
 
View Inheritance in Odoo 16
View Inheritance in Odoo 16View Inheritance in Odoo 16
View Inheritance in Odoo 16
 
Updating Client Interface 'on change' @api.onchange in Odoo 15
Updating Client Interface 'on change' @api.onchange in Odoo 15Updating Client Interface 'on change' @api.onchange in Odoo 15
Updating Client Interface 'on change' @api.onchange in Odoo 15
 
Deploying & Scaling your Odoo Server
Deploying & Scaling your Odoo ServerDeploying & Scaling your Odoo Server
Deploying & Scaling your Odoo Server
 
Defining Kanban View in Odoo15 | Advanced Views
Defining Kanban View in Odoo15 | Advanced ViewsDefining Kanban View in Odoo15 | Advanced Views
Defining Kanban View in Odoo15 | Advanced Views
 
External dependencies ,pre init hook & post init hook in odoo
External dependencies ,pre init hook & post init hook in odooExternal dependencies ,pre init hook & post init hook in odoo
External dependencies ,pre init hook & post init hook in odoo
 
Improving the performance of Odoo deployments
Improving the performance of Odoo deploymentsImproving the performance of Odoo deployments
Improving the performance of Odoo deployments
 
Odoo Experience 2018 - Visualizing Data in Odoo: How to Create a New View
Odoo Experience 2018 - Visualizing Data in Odoo: How to Create a New ViewOdoo Experience 2018 - Visualizing Data in Odoo: How to Create a New View
Odoo Experience 2018 - Visualizing Data in Odoo: How to Create a New View
 
Odoo (Build module, Security, ORM)
Odoo (Build module, Security, ORM)Odoo (Build module, Security, ORM)
Odoo (Build module, Security, ORM)
 
ES6 PPT FOR 2016
ES6 PPT FOR 2016ES6 PPT FOR 2016
ES6 PPT FOR 2016
 
Php with MYSQL Database
Php with MYSQL DatabasePhp with MYSQL Database
Php with MYSQL Database
 
How to Create Oracle Fusion BI Publisher Report Using RTF Template
How to Create Oracle Fusion BI Publisher Report Using RTF TemplateHow to Create Oracle Fusion BI Publisher Report Using RTF Template
How to Create Oracle Fusion BI Publisher Report Using RTF Template
 
Oracle hcm cloud configuring approval workflow
Oracle hcm cloud configuring approval workflowOracle hcm cloud configuring approval workflow
Oracle hcm cloud configuring approval workflow
 

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 shop
Viditsingh22
 
Marketing Cloud - Cross Cloud Architecture - Identity Design - August 2023.pdf
Marketing Cloud - Cross Cloud Architecture - Identity Design - August 2023.pdfMarketing Cloud - Cross Cloud Architecture - Identity Design - August 2023.pdf
Marketing Cloud - Cross Cloud Architecture - Identity Design - August 2023.pdf
Kenneth Wagner
 
.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 Exercises
ddrschiw
 
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 ASSIGNMENT
Lori Moore
 
A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010
Abram 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 Model
Patric Ksinsik
 
Php mysql
Php mysqlPhp mysql
Php mysql
Manish Jain
 
AspMVC4 start101
AspMVC4 start101AspMVC4 start101
AspMVC4 start101
Rich Helton
 
Overview of CSharp MVC3 and EF4
Overview of CSharp MVC3 and EF4Overview of CSharp MVC3 and EF4
Overview of CSharp MVC3 and EF4
Rich Helton
 
data binding.docx
data binding.docxdata binding.docx
data binding.docx
kishorebabu123
 
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 4
Mudasir Syed
 
Ado Presentation
Ado PresentationAdo Presentation
Ado Presentation
Rebecca Peltz
 
OBIEE publisher with Report creation - Tutorial
OBIEE publisher with Report creation - TutorialOBIEE publisher with Report creation - Tutorial
OBIEE publisher with Report creation - Tutorial
onlinetrainingplacements
 
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
 
Marketing Cloud - Cross Cloud Architecture - Identity Design - August 2023.pdf
Marketing Cloud - Cross Cloud Architecture - Identity Design - August 2023.pdfMarketing Cloud - Cross Cloud Architecture - Identity Design - August 2023.pdf
Marketing Cloud - Cross Cloud Architecture - Identity Design - August 2023.pdf
 
.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
 

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 Source
Audaxis
 
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
Audaxis
 
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" connector
Audaxis
 
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
Audaxis
 
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
Audaxis
 
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
Audaxis
 
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
Audaxis
 
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
Audaxis
 
Jaspersoft Intelligence Inside avec Audaxis
Jaspersoft Intelligence Inside avec AudaxisJaspersoft Intelligence Inside avec Audaxis
Jaspersoft Intelligence Inside avec Audaxis
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?
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 patronale
Audaxis
 
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
Audaxis
 
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
Audaxis
 
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
Audaxis
 
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
Audaxis
 
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
Audaxis
 
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
Audaxis
 
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
Audaxis
 

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

How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 

Recently uploaded (20)

How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 

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