Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

IMPORT DATA in OpenERP 7

By
Harvey Heuvel
on 2/24/14, 6:56 PM 3,278 views

OK, I am totally lost after 4 days trying to import customer data in version 7. I have a simple file with 2 rows and 6 columns. This is how the data looks like. Company,Address Type,City,State,Zip,Phone Health Basket of Mount Dora,18834 US HWY 441,Mount Dora,FL,32757,352-735-1166 Health Basket of Clermont,1050 Florida 50,Clermont,FL,34711,352 242-4499

If I try to import this I get this message after I press <validate>

No matching record found for name 'Health Basket of Mount Dora' in field 'Company' at row 2
Get all possible values
Found multiple matches for field 'State' (2 matches) at row 2 (1 more)
Value '18834 US HWY 441' not found in selection field 'Address Type' at row 2
Here are the possible values:
    Default
    Invoice
    Shipping
    Contact
    Other
Missing required value for the field 'name'. This might be 'Name' in the current model, or a field of the same name in an o2m. at row 2 (1 more)
No matching record found for name 'Health Basket of Clermont' in field 'Company' at row 3
Get all possible values
Value '1050 Florida 50' not found in selection field 'Address Type' at row 3
Here are the possible values:
    Default
    Invoice
    Shipping
    Contact
    Other

Can someone please help. Thank you

1

Ray Carnes

--Ray Carnes--
15677
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

Ray Carnes
On 2/26/14, 8:43 PM

You are making a common mistake - confusing the terminology of OpenERP.

(I made this mistake myself when I first started playing with OpenERP).

A 'company' is a set of partners (leads, customers, suppliers and employees), users (logins) and stock of products with a separately managed set of accounts.

An example of companies would be OpenERP S.A, OpenERP USA, OpenERP Asia/Pacific.

A 'customer' is a partner that purchases products from a company.

Unless you need a separate company for separate physical or legal entities (like worldwide companies under a global holding company, or separately managed franchises reporting to a franchisor) - then you should not be importing companies. I doubt you really mean to import companies in the sense that OpenERP models them. Most users have a single company, some a handful.

The best way to understand what you need to import is to manually create a single record and export it. That way you can see how the data you enter and the options you select get mapped into the fields in a CSV file.

Enter a Customer, you will see it does not show up as a Company, even though you can check 'Is a Company' (even more confusing!).

You have imported companies instead of customers, but since all of these are 'partners' they show up as Customers for your admin user (who can see all companies) but not your other users (who are generally restricted to a single company, unless you set them up to view more than one).

Take a step back, read some of the documentation, and try again.

Companies -https://doc.openerp.com/book/1/1_3_Real_Case/1_3_Real_Case_db_setup/#configuring-the-main-company

Partners - https://doc.openerp.com/book/1/1_2_Guided_Tour/1_2_Guided_Tour_openerp/#partners-contacts

0
Youri
On 2/25/14, 2:08 AM

Hello

There is some errors in your CSV file:

Company,Address Type,City,State,Zip,Phone 
"Health Basket of Mount Dora","18834 US HWY 441","Mount Dora","FL","32757","352-735-1166" 
"Health Basket of Clermont","1050 Florida 50","Clermont","FL","34711","352 242-4499"

-First column (Company): I think you should create the companies first.

-Second column (Address type): Your data is the address, not the address type. Look at the error message to have the list of values for address type.

You should create some companies and products manually and then export the products and study the resultant CSV file. So you could see how it works.

0
Tankgirl
On 2/25/14, 6:09 AM

Have you tried creating a new export with all the blue colored fields selected? Then add your columns and import again. I think you need to have at least a column with external id's (fields beginning with __export__.res_partner..)

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 2/24/14, 6:56 PM
Seen: 3278 times
Last updated: 3/16/15, 8:10 AM