SlideShare a Scribd company logo
1 of 14
Download to read offline
BEST PRACTICES ON HOW TO
IMPORT DATA INTO OPENERP
Why	
  you	
  should	
  love	
  CSV	
  Import	
  	
  
Cyril	
  MORISSE	
  (	
  @cmorisse	
  )	
  	
  
 
Introduc*on	
  
	
  
¨  With	
  Test	
  Driven	
  Development	
  and	
  Data	
  
Migra*on,	
  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	
  documenta*on	
  
¨  This	
  talk	
  is	
  an	
  overview	
  of	
  the	
  module	
  
Installa*on	
  
¨  Export	
  func*onality	
  is	
  available	
  right	
  out	
  of	
  the	
  box	
  
¨  BUT	
  import	
  func*onality	
  must	
  be	
  installed:	
  
¤  Import	
  is	
  covered	
  by	
  “base_import”	
  module	
  
¤  Import	
  must	
  be	
  installed	
  via	
  SeTngs	
  /	
  Configura*on	
  /	
  
General	
  SeTngs	
  
¨  Then	
  “Import”	
  link	
  is	
  available	
  in	
  all	
  list/tree	
  views	
  
CSV	
  import	
  issues	
  
¨  When	
  impor*ng	
  data	
  using	
  CSV,	
  you	
  will	
  
face	
  3	
  main	
  issues:	
  
¤ Iden*fy	
  the	
  fields	
  required	
  for	
  an	
  import	
  
¤ Understand	
  “OpenERP	
  External	
  IDs”	
  	
  
¤ Understand	
  how	
  to	
  import	
  the	
  different	
  type	
  
of	
  fields	
  
n Simple	
  fields	
  (	
  date,	
  text,	
  numbers,	
  boolean,…)	
  
n Rela*onal	
  fields:	
  
n Many2many	
  
n Many2One	
  
n One2many	
  
Iden*fy	
  fields	
  to	
  import	
  
¨  To	
  iden*fy	
  the	
  columns	
  required	
  to	
  import	
  an	
  
object:	
  
1.  Ac*vate	
  “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	
  (con*nued)	
  
¨  User	
  defined	
  IDs	
  are	
  saved	
  in	
  the	
  database	
  and	
  can	
  be	
  
retrieved	
  via:	
  
¤  SeTngs	
  /	
  Technical	
  /	
  Sequences	
  &	
  Iden*fiers	
  /	
  External	
  Iden*fiers	
  	
  
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	
  rela*ons:	
  Many2One	
  
¨  Many2one	
  	
  
¨  This	
  is	
  the	
  simplest	
  rela*on	
  to	
  import	
  in	
  CSV	
  
¤  Just	
  use	
  id	
  of	
  referenced	
  object	
  
id
parent_id
product_category
...
Import	
  rela*ons:	
  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	
  rela*ons:	
  One2Many	
  
¨  Eg.	
  Quota*ons/	
  Quota*ons	
  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	
  
¤  hkp://bitbucket.org/cmorisse/edgdd	
  	
  
¨  Your	
  users	
  will	
  be	
  able	
  to	
  “coopera*vely”	
  enter	
  their	
  
data	
  and	
  you	
  will	
  be	
  able	
  to	
  seamlessly	
  integrate	
  and	
  
use	
  this	
  data	
  in	
  your	
  project	
  	
  
More	
  informa*on?	
  
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

Domain Driven Rails
Domain Driven RailsDomain Driven Rails
Domain Driven RailsYan Pritzker
 
JavaScript - Chapter 14 - Form Handling
 JavaScript - Chapter 14 - Form Handling   JavaScript - Chapter 14 - Form Handling
JavaScript - Chapter 14 - Form Handling WebStackAcademy
 
Empower your App by Inheriting from Odoo Mixins
Empower your App by Inheriting from Odoo MixinsEmpower your App by Inheriting from Odoo Mixins
Empower your App by Inheriting from Odoo MixinsOdoo
 
Лекция 5: B-деревья (B-trees, k-way merge sort)
Лекция 5: B-деревья (B-trees, k-way merge sort)Лекция 5: B-деревья (B-trees, k-way merge sort)
Лекция 5: B-деревья (B-trees, k-way merge sort)Mikhail Kurnosov
 
CSS3 Media Queries
CSS3 Media QueriesCSS3 Media Queries
CSS3 Media QueriesRuss Weakley
 
아라한사의 스프링 시큐리티 정리
아라한사의 스프링 시큐리티 정리아라한사의 스프링 시큐리티 정리
아라한사의 스프링 시큐리티 정리라한사 아
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsSun Technlogies
 
Groovy Tutorial
Groovy TutorialGroovy Tutorial
Groovy TutorialPaul King
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.Beqa Chacha
 
sumar,restar,multiplicar,dividr app eclipse
sumar,restar,multiplicar,dividr app eclipsesumar,restar,multiplicar,dividr app eclipse
sumar,restar,multiplicar,dividr app eclipseManuel Gutierrez
 
OroCommerce Storefront Design. Non-standard Layout Customisation.
OroCommerce Storefront Design. Non-standard Layout Customisation.OroCommerce Storefront Design. Non-standard Layout Customisation.
OroCommerce Storefront Design. Non-standard Layout Customisation.Andrew Yatsenko
 
Como conectar visual basic 6.0 a una base de datos microsoft sql server
Como conectar visual basic 6.0 a una base de datos microsoft sql serverComo conectar visual basic 6.0 a una base de datos microsoft sql server
Como conectar visual basic 6.0 a una base de datos microsoft sql serverKarolaynCardozo1
 
HTML5 audio & video
HTML5 audio & videoHTML5 audio & video
HTML5 audio & videoHamza Zahid
 
Do you know what your Drupal is doing_ Observe it!
Do you know what your Drupal is doing_ Observe it!Do you know what your Drupal is doing_ Observe it!
Do you know what your Drupal is doing_ Observe it!sparkfabrik
 

What's hot (20)

Domain Driven Rails
Domain Driven RailsDomain Driven Rails
Domain Driven Rails
 
IBM OS/2 Analysis
IBM OS/2 AnalysisIBM OS/2 Analysis
IBM OS/2 Analysis
 
JavaScript - Chapter 14 - Form Handling
 JavaScript - Chapter 14 - Form Handling   JavaScript - Chapter 14 - Form Handling
JavaScript - Chapter 14 - Form Handling
 
Empower your App by Inheriting from Odoo Mixins
Empower your App by Inheriting from Odoo MixinsEmpower your App by Inheriting from Odoo Mixins
Empower your App by Inheriting from Odoo Mixins
 
Лекция 5: B-деревья (B-trees, k-way merge sort)
Лекция 5: B-деревья (B-trees, k-way merge sort)Лекция 5: B-деревья (B-trees, k-way merge sort)
Лекция 5: B-деревья (B-trees, k-way merge sort)
 
CSS3 Media Queries
CSS3 Media QueriesCSS3 Media Queries
CSS3 Media Queries
 
아라한사의 스프링 시큐리티 정리
아라한사의 스프링 시큐리티 정리아라한사의 스프링 시큐리티 정리
아라한사의 스프링 시큐리티 정리
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
 
Html5 SVG
Html5 SVGHtml5 SVG
Html5 SVG
 
Groovy Tutorial
Groovy TutorialGroovy Tutorial
Groovy Tutorial
 
3 клас урок 24 що таке команди, алгоритми та їх виконавці
3 клас урок 24 що таке команди, алгоритми та їх виконавці3 клас урок 24 що таке команди, алгоритми та їх виконавці
3 клас урок 24 що таке команди, алгоритми та їх виконавці
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.
 
Basic of PHP
Basic of PHPBasic of PHP
Basic of PHP
 
8 клас урок №6
8 клас урок №68 клас урок №6
8 клас урок №6
 
sumar,restar,multiplicar,dividr app eclipse
sumar,restar,multiplicar,dividr app eclipsesumar,restar,multiplicar,dividr app eclipse
sumar,restar,multiplicar,dividr app eclipse
 
Database change management with Liquibase
Database change management with LiquibaseDatabase change management with Liquibase
Database change management with Liquibase
 
OroCommerce Storefront Design. Non-standard Layout Customisation.
OroCommerce Storefront Design. Non-standard Layout Customisation.OroCommerce Storefront Design. Non-standard Layout Customisation.
OroCommerce Storefront Design. Non-standard Layout Customisation.
 
Como conectar visual basic 6.0 a una base de datos microsoft sql server
Como conectar visual basic 6.0 a una base de datos microsoft sql serverComo conectar visual basic 6.0 a una base de datos microsoft sql server
Como conectar visual basic 6.0 a una base de datos microsoft sql server
 
HTML5 audio & video
HTML5 audio & videoHTML5 audio & video
HTML5 audio & video
 
Do you know what your Drupal is doing_ Observe it!
Do you know what your Drupal is doing_ Observe it!Do you know what your Drupal is doing_ Observe it!
Do you know what your Drupal is doing_ Observe it!
 

Similar to Best practices on how to import data into OpenERP. Cyril Morisse, Audaxis

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
 
CICONF 2012 - Don't Make Me Read Your Mind
CICONF 2012 - Don't Make Me Read Your MindCICONF 2012 - Don't Make Me Read Your Mind
CICONF 2012 - Don't Make Me Read Your Mindciconf
 
Il 09 T3 William Spreitzer
Il 09 T3 William SpreitzerIl 09 T3 William Spreitzer
Il 09 T3 William Spreitzerwspreitzer
 
Final report mobile shop
Final report   mobile shopFinal report   mobile shop
Final report mobile shopViditsingh22
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfoliomwillmer
 
Dbva dotnet programmer_guide_chapter8
Dbva dotnet programmer_guide_chapter8Dbva dotnet programmer_guide_chapter8
Dbva dotnet programmer_guide_chapter8Shakeel Mujahid
 
A multi submission importer for easyform
A multi submission importer for easyformA multi submission importer for easyform
A multi submission importer for easyformAnnette Lewis
 
Overview of CSharp MVC3 and EF4
Overview of CSharp MVC3 and EF4Overview of CSharp MVC3 and EF4
Overview of CSharp MVC3 and EF4Rich Helton
 
Laravel 8 export data as excel file with example
Laravel 8 export data as excel file with exampleLaravel 8 export data as excel file with example
Laravel 8 export data as excel file with exampleKaty Slemon
 
SH 2 - SES 1 - Stitch_Workshop_TLV.pptx
SH 2 - SES 1 - Stitch_Workshop_TLV.pptxSH 2 - SES 1 - Stitch_Workshop_TLV.pptx
SH 2 - SES 1 - Stitch_Workshop_TLV.pptxMongoDB
 
Implementing Your Full Stack App with MongoDB Stitch (Tutorial)
Implementing Your Full Stack App with MongoDB Stitch (Tutorial)Implementing Your Full Stack App with MongoDB Stitch (Tutorial)
Implementing Your Full Stack App with MongoDB Stitch (Tutorial)MongoDB
 
ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENTLori Moore
 
[2015/2016] Require JS and Handlebars JS
[2015/2016] Require JS and Handlebars JS[2015/2016] Require JS and Handlebars JS
[2015/2016] Require JS and Handlebars JSIvano Malavolta
 
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling Sencha
 
Introduction to OO, Java and Eclipse/WebSphere
Introduction to OO, Java and Eclipse/WebSphereIntroduction to OO, Java and Eclipse/WebSphere
Introduction to OO, Java and Eclipse/WebSphereeLink Business Innovations
 

Similar to Best practices on how to import data into OpenERP. Cyril Morisse, Audaxis (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
 
Apps1
Apps1Apps1
Apps1
 
CICONF 2012 - Don't Make Me Read Your Mind
CICONF 2012 - Don't Make Me Read Your MindCICONF 2012 - Don't Make Me Read Your Mind
CICONF 2012 - Don't Make Me Read Your Mind
 
Il 09 T3 William Spreitzer
Il 09 T3 William SpreitzerIl 09 T3 William Spreitzer
Il 09 T3 William Spreitzer
 
Final report mobile shop
Final report   mobile shopFinal report   mobile shop
Final report mobile shop
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfolio
 
Dbva dotnet programmer_guide_chapter8
Dbva dotnet programmer_guide_chapter8Dbva dotnet programmer_guide_chapter8
Dbva dotnet programmer_guide_chapter8
 
Readme
ReadmeReadme
Readme
 
ASP DOT NET
ASP DOT NETASP DOT NET
ASP DOT NET
 
A multi submission importer for easyform
A multi submission importer for easyformA multi submission importer for easyform
A multi submission importer for easyform
 
Overview of CSharp MVC3 and EF4
Overview of CSharp MVC3 and EF4Overview of CSharp MVC3 and EF4
Overview of CSharp MVC3 and EF4
 
Laravel 8 export data as excel file with example
Laravel 8 export data as excel file with exampleLaravel 8 export data as excel file with example
Laravel 8 export data as excel file with example
 
RAD CRUD
RAD CRUDRAD CRUD
RAD CRUD
 
SH 2 - SES 1 - Stitch_Workshop_TLV.pptx
SH 2 - SES 1 - Stitch_Workshop_TLV.pptxSH 2 - SES 1 - Stitch_Workshop_TLV.pptx
SH 2 - SES 1 - Stitch_Workshop_TLV.pptx
 
Implementing Your Full Stack App with MongoDB Stitch (Tutorial)
Implementing Your Full Stack App with MongoDB Stitch (Tutorial)Implementing Your Full Stack App with MongoDB Stitch (Tutorial)
Implementing Your Full Stack App with MongoDB Stitch (Tutorial)
 
ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENT
 
[2015/2016] Require JS and Handlebars JS
[2015/2016] Require JS and Handlebars JS[2015/2016] Require JS and Handlebars JS
[2015/2016] Require JS and Handlebars JS
 
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
 
Introduction to OO, Java and Eclipse/WebSphere
Introduction to OO, Java and Eclipse/WebSphereIntroduction to OO, Java and Eclipse/WebSphere
Introduction to OO, Java and Eclipse/WebSphere
 
Ecad final
Ecad finalEcad final
Ecad final
 

More from Odoo

Timesheet Workshop: The Timesheet App People Love!
Timesheet Workshop: The Timesheet App People Love!Timesheet Workshop: The Timesheet App People Love!
Timesheet Workshop: The Timesheet App People Love!Odoo
 
Odoo 3D Product View with Google Model-Viewer
Odoo 3D Product View with Google Model-ViewerOdoo 3D Product View with Google Model-Viewer
Odoo 3D Product View with Google Model-ViewerOdoo
 
Keynote - Vision & Strategy
Keynote - Vision & StrategyKeynote - Vision & Strategy
Keynote - Vision & StrategyOdoo
 
Opening Keynote - Unveilling Odoo 14
Opening Keynote - Unveilling Odoo 14Opening Keynote - Unveilling Odoo 14
Opening Keynote - Unveilling Odoo 14Odoo
 
Extending Odoo with a Comprehensive Budgeting and Forecasting Capability
Extending Odoo with a Comprehensive Budgeting and Forecasting CapabilityExtending Odoo with a Comprehensive Budgeting and Forecasting Capability
Extending Odoo with a Comprehensive Budgeting and Forecasting CapabilityOdoo
 
Managing Multi-channel Selling with Odoo
Managing Multi-channel Selling with OdooManaging Multi-channel Selling with Odoo
Managing Multi-channel Selling with OdooOdoo
 
Product Configurator: Advanced Use Case
Product Configurator: Advanced Use CaseProduct Configurator: Advanced Use Case
Product Configurator: Advanced Use CaseOdoo
 
Accounting Automation: How Much Money We Saved and How?
Accounting Automation: How Much Money We Saved and How?Accounting Automation: How Much Money We Saved and How?
Accounting Automation: How Much Money We Saved and How?Odoo
 
Rock Your Logistics with Advanced Operations
Rock Your Logistics with Advanced OperationsRock Your Logistics with Advanced Operations
Rock Your Logistics with Advanced OperationsOdoo
 
Transition from a cost to a flow-centric organization
Transition from a cost to a flow-centric organizationTransition from a cost to a flow-centric organization
Transition from a cost to a flow-centric organizationOdoo
 
Synchronization: The Supply Chain Response to Overcome the Crisis
Synchronization: The Supply Chain Response to Overcome the CrisisSynchronization: The Supply Chain Response to Overcome the Crisis
Synchronization: The Supply Chain Response to Overcome the CrisisOdoo
 
Running a University with Odoo
Running a University with OdooRunning a University with Odoo
Running a University with OdooOdoo
 
Down Payments on Purchase Orders in Odoo
Down Payments on Purchase Orders in OdooDown Payments on Purchase Orders in Odoo
Down Payments on Purchase Orders in OdooOdoo
 
Odoo Implementation in Phases - Success Story of a Retail Chain 3Sach food
Odoo Implementation in Phases - Success Story of a Retail Chain 3Sach foodOdoo Implementation in Phases - Success Story of a Retail Chain 3Sach food
Odoo Implementation in Phases - Success Story of a Retail Chain 3Sach foodOdoo
 
Migration from Salesforce to Odoo
Migration from Salesforce to OdooMigration from Salesforce to Odoo
Migration from Salesforce to OdooOdoo
 
Preventing User Mistakes by Using Machine Learning
Preventing User Mistakes by Using Machine LearningPreventing User Mistakes by Using Machine Learning
Preventing User Mistakes by Using Machine LearningOdoo
 
Becoming an Odoo Expert: How to Prepare for the Certification
Becoming an Odoo Expert: How to Prepare for the Certification Becoming an Odoo Expert: How to Prepare for the Certification
Becoming an Odoo Expert: How to Prepare for the Certification Odoo
 
Instant Printing of any Odoo Report or Shipping Label
Instant Printing of any Odoo Report or Shipping LabelInstant Printing of any Odoo Report or Shipping Label
Instant Printing of any Odoo Report or Shipping LabelOdoo
 
How Odoo helped an Organization Grow 3 Fold
How Odoo helped an Organization Grow 3 FoldHow Odoo helped an Organization Grow 3 Fold
How Odoo helped an Organization Grow 3 FoldOdoo
 
From Shopify to Odoo
From Shopify to OdooFrom Shopify to Odoo
From Shopify to OdooOdoo
 

More from Odoo (20)

Timesheet Workshop: The Timesheet App People Love!
Timesheet Workshop: The Timesheet App People Love!Timesheet Workshop: The Timesheet App People Love!
Timesheet Workshop: The Timesheet App People Love!
 
Odoo 3D Product View with Google Model-Viewer
Odoo 3D Product View with Google Model-ViewerOdoo 3D Product View with Google Model-Viewer
Odoo 3D Product View with Google Model-Viewer
 
Keynote - Vision & Strategy
Keynote - Vision & StrategyKeynote - Vision & Strategy
Keynote - Vision & Strategy
 
Opening Keynote - Unveilling Odoo 14
Opening Keynote - Unveilling Odoo 14Opening Keynote - Unveilling Odoo 14
Opening Keynote - Unveilling Odoo 14
 
Extending Odoo with a Comprehensive Budgeting and Forecasting Capability
Extending Odoo with a Comprehensive Budgeting and Forecasting CapabilityExtending Odoo with a Comprehensive Budgeting and Forecasting Capability
Extending Odoo with a Comprehensive Budgeting and Forecasting Capability
 
Managing Multi-channel Selling with Odoo
Managing Multi-channel Selling with OdooManaging Multi-channel Selling with Odoo
Managing Multi-channel Selling with Odoo
 
Product Configurator: Advanced Use Case
Product Configurator: Advanced Use CaseProduct Configurator: Advanced Use Case
Product Configurator: Advanced Use Case
 
Accounting Automation: How Much Money We Saved and How?
Accounting Automation: How Much Money We Saved and How?Accounting Automation: How Much Money We Saved and How?
Accounting Automation: How Much Money We Saved and How?
 
Rock Your Logistics with Advanced Operations
Rock Your Logistics with Advanced OperationsRock Your Logistics with Advanced Operations
Rock Your Logistics with Advanced Operations
 
Transition from a cost to a flow-centric organization
Transition from a cost to a flow-centric organizationTransition from a cost to a flow-centric organization
Transition from a cost to a flow-centric organization
 
Synchronization: The Supply Chain Response to Overcome the Crisis
Synchronization: The Supply Chain Response to Overcome the CrisisSynchronization: The Supply Chain Response to Overcome the Crisis
Synchronization: The Supply Chain Response to Overcome the Crisis
 
Running a University with Odoo
Running a University with OdooRunning a University with Odoo
Running a University with Odoo
 
Down Payments on Purchase Orders in Odoo
Down Payments on Purchase Orders in OdooDown Payments on Purchase Orders in Odoo
Down Payments on Purchase Orders in Odoo
 
Odoo Implementation in Phases - Success Story of a Retail Chain 3Sach food
Odoo Implementation in Phases - Success Story of a Retail Chain 3Sach foodOdoo Implementation in Phases - Success Story of a Retail Chain 3Sach food
Odoo Implementation in Phases - Success Story of a Retail Chain 3Sach food
 
Migration from Salesforce to Odoo
Migration from Salesforce to OdooMigration from Salesforce to Odoo
Migration from Salesforce to Odoo
 
Preventing User Mistakes by Using Machine Learning
Preventing User Mistakes by Using Machine LearningPreventing User Mistakes by Using Machine Learning
Preventing User Mistakes by Using Machine Learning
 
Becoming an Odoo Expert: How to Prepare for the Certification
Becoming an Odoo Expert: How to Prepare for the Certification Becoming an Odoo Expert: How to Prepare for the Certification
Becoming an Odoo Expert: How to Prepare for the Certification
 
Instant Printing of any Odoo Report or Shipping Label
Instant Printing of any Odoo Report or Shipping LabelInstant Printing of any Odoo Report or Shipping Label
Instant Printing of any Odoo Report or Shipping Label
 
How Odoo helped an Organization Grow 3 Fold
How Odoo helped an Organization Grow 3 FoldHow Odoo helped an Organization Grow 3 Fold
How Odoo helped an Organization Grow 3 Fold
 
From Shopify to Odoo
From Shopify to OdooFrom Shopify to Odoo
From Shopify to Odoo
 

Recently uploaded

8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCRashishs7044
 
Case study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detailCase study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detailAriel592675
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckHajeJanKamps
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607dollysharma2066
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03DallasHaselhorst
 
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCRashishs7044
 
Flow Your Strategy at Flight Levels Day 2024
Flow Your Strategy at Flight Levels Day 2024Flow Your Strategy at Flight Levels Day 2024
Flow Your Strategy at Flight Levels Day 2024Kirill Klimov
 
Marketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent ChirchirMarketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent Chirchirictsugar
 
The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024christinemoorman
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy Verified Accounts
 
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxContemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxMarkAnthonyAurellano
 
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,noida100girls
 
Islamabad Escorts | Call 03070433345 | Escort Service in Islamabad
Islamabad Escorts | Call 03070433345 | Escort Service in IslamabadIslamabad Escorts | Call 03070433345 | Escort Service in Islamabad
Islamabad Escorts | Call 03070433345 | Escort Service in IslamabadAyesha Khan
 
Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Riya Pathan
 
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,noida100girls
 
Innovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfInnovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfrichard876048
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africaictsugar
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCRashishs7044
 
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdfNewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdfKhaled Al Awadi
 

Recently uploaded (20)

8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR
 
Case study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detailCase study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detail
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03
 
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
 
Flow Your Strategy at Flight Levels Day 2024
Flow Your Strategy at Flight Levels Day 2024Flow Your Strategy at Flight Levels Day 2024
Flow Your Strategy at Flight Levels Day 2024
 
Marketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent ChirchirMarketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent Chirchir
 
The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail Accounts
 
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxContemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
 
Corporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information TechnologyCorporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information Technology
 
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
 
Islamabad Escorts | Call 03070433345 | Escort Service in Islamabad
Islamabad Escorts | Call 03070433345 | Escort Service in IslamabadIslamabad Escorts | Call 03070433345 | Escort Service in Islamabad
Islamabad Escorts | Call 03070433345 | Escort Service in Islamabad
 
Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737
 
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
 
Innovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfInnovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdf
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africa
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
 
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdfNewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
 

Best practices on how to import data into OpenERP. Cyril Morisse, Audaxis

  • 1. BEST PRACTICES ON HOW TO IMPORT DATA INTO OPENERP Why  you  should  love  CSV  Import     Cyril  MORISSE  (  @cmorisse  )    
  • 2.   Introduc*on     ¨  With  Test  Driven  Development  and  Data   Migra*on,  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  documenta*on   ¨  This  talk  is  an  overview  of  the  module  
  • 3. Installa*on   ¨  Export  func*onality  is  available  right  out  of  the  box   ¨  BUT  import  func*onality  must  be  installed:   ¤  Import  is  covered  by  “base_import”  module   ¤  Import  must  be  installed  via  SeTngs  /  Configura*on  /   General  SeTngs   ¨  Then  “Import”  link  is  available  in  all  list/tree  views  
  • 4. CSV  import  issues   ¨  When  impor*ng  data  using  CSV,  you  will   face  3  main  issues:   ¤ Iden*fy  the  fields  required  for  an  import   ¤ Understand  “OpenERP  External  IDs”     ¤ Understand  how  to  import  the  different  type   of  fields   n Simple  fields  (  date,  text,  numbers,  boolean,…)   n Rela*onal  fields:   n Many2many   n Many2One   n One2many  
  • 5. Iden*fy  fields  to  import   ¨  To  iden*fy  the  columns  required  to  import  an   object:   1.  Ac*vate  “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  (con*nued)   ¨  User  defined  IDs  are  saved  in  the  database  and  can  be   retrieved  via:   ¤  SeTngs  /  Technical  /  Sequences  &  Iden*fiers  /  External  Iden*fiers    
  • 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  rela*ons:  Many2One   ¨  Many2one     ¨  This  is  the  simplest  rela*on  to  import  in  CSV   ¤  Just  use  id  of  referenced  object   id parent_id product_category ...
  • 11. Import  rela*ons:  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  rela*ons:  One2Many   ¨  Eg.  Quota*ons/  Quota*ons  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   ¤  hkp://bitbucket.org/cmorisse/edgdd     ¨  Your  users  will  be  able  to  “coopera*vely”  enter  their   data  and  you  will  be  able  to  seamlessly  integrate  and   use  this  data  in  your  project    
  • 14. More  informa*on?   www.audaxis.com     Contact  us   openerp@audaxis.com         14 Visit our booth at OpenERP Community Days in Hall K