SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

Introduction to django
Introduction to djangoIntroduction to django
Introduction to django
Ilian Iliev
 

La actualidad más candente (20)

Odoo Performance Limits
Odoo Performance LimitsOdoo Performance Limits
Odoo Performance Limits
 
The Odoo JS Framework
The Odoo JS FrameworkThe Odoo JS Framework
The Odoo JS Framework
 
How to Build Custom Module in Odoo 15
How to Build Custom Module in Odoo 15How to Build Custom Module in Odoo 15
How to Build Custom Module in Odoo 15
 
Tools for Solving Performance Issues
Tools for Solving Performance IssuesTools for Solving Performance Issues
Tools for Solving Performance Issues
 
Odoo Online platform: architecture and challenges
Odoo Online platform: architecture and challengesOdoo Online platform: architecture and challenges
Odoo Online platform: architecture and challenges
 
Common Performance Pitfalls in Odoo apps
Common Performance Pitfalls in Odoo appsCommon Performance Pitfalls in Odoo apps
Common Performance Pitfalls in Odoo apps
 
Asynchronous JS in Odoo
Asynchronous JS in OdooAsynchronous JS in Odoo
Asynchronous JS in Odoo
 
Introduction to Django
Introduction to DjangoIntroduction to Django
Introduction to Django
 
Odoo - From v7 to v8: the new api
Odoo - From v7 to v8: the new apiOdoo - From v7 to v8: the new api
Odoo - From v7 to v8: the new api
 
Odoo Experience 2018 - Code Profiling in Odoo
Odoo Experience 2018 - Code Profiling in OdooOdoo Experience 2018 - Code Profiling in Odoo
Odoo Experience 2018 - Code Profiling in 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
 
New Framework - ORM
New Framework - ORMNew Framework - ORM
New Framework - ORM
 
Advance Import Data Module for Odoo ,Import data in odoo using excel or CSV
Advance Import Data Module for Odoo ,Import data in odoo using excel or CSVAdvance Import Data Module for Odoo ,Import data in odoo using excel or CSV
Advance Import Data Module for Odoo ,Import data in odoo using excel or CSV
 
Tutorial: Develop an App with the Odoo Framework
Tutorial: Develop an App with the Odoo FrameworkTutorial: Develop an App with the Odoo Framework
Tutorial: Develop an App with the Odoo Framework
 
Odoo - Smart buttons
Odoo - Smart buttonsOdoo - Smart buttons
Odoo - Smart buttons
 
AEM & eCommerce integration
AEM & eCommerce integrationAEM & eCommerce integration
AEM & eCommerce integration
 
Introduction to React JS for beginners
Introduction to React JS for beginners Introduction to React JS for beginners
Introduction to React JS for beginners
 
Introduction to django
Introduction to djangoIntroduction to django
Introduction to django
 
Odoo Experience 2018 - Inherit from These 10 Mixins to Empower Your App
Odoo Experience 2018 - Inherit from These 10 Mixins to Empower Your AppOdoo Experience 2018 - Inherit from These 10 Mixins to Empower Your App
Odoo Experience 2018 - Inherit from These 10 Mixins to Empower Your App
 
Sharing Data Between Angular Components
Sharing Data Between Angular ComponentsSharing Data Between Angular Components
Sharing Data Between Angular Components
 

Similar a 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.0
Jyothi Lekshmi
 
Best practices on how to import data into OpenERP. Cyril Morisse, Audaxis
Best practices on how to import data into OpenERP. Cyril Morisse, AudaxisBest practices on how to import data into OpenERP. Cyril Morisse, Audaxis
Best practices on how to import data into OpenERP. Cyril Morisse, Audaxis
Odoo
 
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 Portfolio
mwillmer
 
Dbva dotnet programmer_guide_chapter8
Dbva dotnet programmer_guide_chapter8Dbva dotnet programmer_guide_chapter8
Dbva dotnet programmer_guide_chapter8
Shakeel Mujahid
 
Databases, SQL and MS SQL Server
Databases, SQL and MS SQL ServerDatabases, SQL and MS SQL Server
Databases, SQL and MS SQL Server
Doncho 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
 

Similar a 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
 
Best practices on how to import data into OpenERP. Cyril Morisse, Audaxis
Best practices on how to import data into OpenERP. Cyril Morisse, AudaxisBest practices on how to import data into OpenERP. Cyril Morisse, Audaxis
Best practices on how to import data into OpenERP. Cyril Morisse, Audaxis
 
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
 

Más de Audaxis

Más de 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
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 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