Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

How do I import my contacts so they are placed within (linked to) the company for which they work?

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
importcontactscompanies
18 Risposte
22297 Visualizzazioni
Avatar
Rex Thain

I have imported successfully imported companies via csv. I have created manually created a contact attached to a company and exported the csv file, but I see no field that can be mapped to the company they for which they work.

Is it not possible to import contacts within their companies via csv, if not how would you do it?

4
Avatar
Abbandona
Avatar
Martin
Risposta migliore

The solution to that is to choose one or two fields of the company that together form some sort of unique identifier.

Export just those fields to a file and import it into a spreadsheet workbook (let's call that Sheet_1). You'll see that an additional "External ID" column will have been created in Sheet_1, of the form __export__.res_partner_9999.

Load your contacts into a second sheet in the workbook (Sheet_2), keyed with the columns that form the same unique identifier.

In a third sheet (Sheet_3), in a column entitled parent_id/id, use the VLOOKUP function on a person in Sheet_2 to get the "External ID" for each company in Sheet_1. The search key to VLOOKUP will have to be concatenated from several columns if you can't find a truly unique company identifier in a single column. If you're starting from scratch you can invent a code of some kind before importing your company records and put it in the notes column.

What you will have done is relate persons to companies using the pseudo-primary key (External ID) of the company as the pseudo-foreign key (parent_id/id) of the company for person records.

I have created a Google Spreadsheet that demonstrates simply what I describe above. For what it's worth: it also demos the very useful function for this kind of work QUERY(data, query, headers)

To use my example, do the following:

  1. Open the following link and save a copy for yourself to edit https://docs.google.com/spreadsheet/ccc?key=0AiVG6SoU001RdGFGdDNJM0lLQlM1QW5oQ1lwRXgwQkE
  2. Create a fresh, empty database in OpenERP V7 and make sure general settings permit you to create, export and import customers
  3. Download the sheet ExportCompanies as a CSV file
  4. Import it into the Customer's view of OpenERP
  5. Re-export those customers, but only the Name and Notes attributes; the rest you already have, right?
  6. Import the resulting CSV file back into the spreadsheet and fix it up to look like the sheet Example res.partner
  7. Edit column G of the Person sheet to point to your imported res.partner sheet, rather than the example
  8. Download the sheet ExportPersons as a CSV file
  9. Import it into the Customer's view of OpenERP
  10. Check that Company #1236 has two contacts: Contact #10235 & Contact #10236

Hope that helps.

2
Avatar
Abbandona
Rex Thain
Autore

Martin, Thanks for the detailed instructions, I will give them a try as soon as I can.

Martin

Yeah! I'd like to know if I've skipped anything important. Please advise me of any confusions, ambiguities or lapses.

Martin

Were you successful?

Rex Thain
Autore

I used excel rather than googledocs so the process was slightly different, however your explanation gave me an understanding of the concept. The import created the contacts within the company and as a separate contact also, notes came in with the contact as well. Unfortunately, I made a mistake when matching the contact to the company (sort function issue) and about half way through the list the contacts ended up miss assigned, so i will be doing it again.

But again the concept was sound and exactly what I need thanks so much for your help and fast response.

Martin

This is great news. I'm glad I was able to help.

Rex Thain
Autore

@Martin UPDATE...the import worked to get all the contacts in but the only user that can access them is the admin (it is also the only user that existed at the time of the import). I thought is was a bug problem and so I loaded the fix but it didn't make any difference. When I install new users they cannot access the imported companies or contacts, but any new companies or contacts that are installed can be accessed by the other users regardless of who created them. Any Suggestions???

Martin

I see you have removed the check mark that accepted my answer, even though I did fully answer the question you asked. You even said "I have imported successfully imported companies via csv". Were they successfully imported or not? You now say that, "When I install new users they cannot access the imported companies or contacts." This is a new problem, unrelated to the one I answered thoroughly and correctly. You should consider asking for help with an entirely new question, leaving this one marked as having been correctly answered.

Rex Thain
Autore

I have rechecked the answer as accepted, my thought was that if imported information can not be accessed it wasn't successfully imported. I created a fresh data base did a first level import (just the company not the related contact) and could not access the company list with a created user so there must be another issue. I have created another question to address it.

Martin

Thank you. I appreciate your quick response. The new problem is strange and worrying, since I am busy with much the same work myself right now.

Bob Schader

I had managed to get all my contacts imported through csv without specifying a company (since I couldn't get it to recognise them), thought I could just assign a company to the contacts later. But when I started doing that in OpenERP, as soon as I assigned a company to a contact, all their info except their name disappeared! Anyone know how to prevent that from happening?

Rex Thain
Autore

UPDATE: @Martin; @ Bob .I have discovered what might have been a "duh" to many, particularly our European users. There are two different "Companies" in OpenERP. The Company you can see when signed in with full admin privileges that you see under settings is the "Your Company". Since OpenERP supports multi-companies you create multiple Owned or "Your Companies". If you use settings/companies/import the system assumes these are all "Your Companies" so only users with access would see them. The companies (customer companies) I was wanting to import should be imported through (see below)

Rex Thain
Autore

(cont. from above) imported through Sales/Customers/Import, then you can follow the above answer and other users will be able to see. Remember that you must have the User can Import/Export box checked in General Settings and when you are at Sales/Customers you must be in list view or you can't see the import button. Also when you import the Companies you must have a column "Is a Company" and the field must be marked TRUE.

Michael Gardner

Which field (when using the import wizard ) is being matched to the 'parent_id/id' field in the csv file? I've tried 'Related Company" and others like it but keep getting vakudatuib errors, or worse, a red error with no reason why its failed validation. Can anyone assist?

Andrew Castillo

Will this work on Odoo 12?

Avatar
Ossi Mantylahti
Risposta migliore

Hi all

Version of Odoo 13.0 has apparently changed, since the procedure described in the orginal answer does not work. It is possible to import contacts and book them to companies, but the procedure has to be done in three parts. It is not possible to import directly persons and match them to already existing companies.

Here are the steps that need to be done.

1. Import companies from Excel file to Odoo and export them. The ID of the company is going to be important. To get the ID select "I want to have ability to update the records"
2. Import individual persons from another Excel file to Odoo and export them. Note the ID of these individual persons. To get the ID select "I want to have ability to update the records"
3. Create a temporary Excel sheet with person's name and person's ID and companies
4. Do the VLOOKUP trick to match Company ID to the sheet next to the person's ID
5. Import contacts using principally person's ID and select the Company ID as Company / External ID for importing. Do not import any other fields.

Excel VLOOKUP function syntax is following =VLOOKUP(C2,Sheet2!A:B,2,FALSE)

We have also created a video explaining on how to do this step by step.

https://youtu.be/qTMwMt0TtZE


0
Avatar
Abbandona
Avatar
Tony
Risposta migliore

I know im an idiot but can you please expain to me how to do step 2 and 3. I searched through every menu and I dont see any kind of export option. I do see import options on list views for every section but I do not see any export option.

Specifically on step 2 I created a new blank database fine. I do not see where under settings it permit you to create, export and import customers. I only see the Import/Export - Allow users to import data from CSV file.
I am logged in as administrator, created a customer but still can't find export option.

Please help! If you can explain as if you are talking to a 4 year old that would be perfect! Thanks!

0
Avatar
Abbandona
Avatar
Santiago
Risposta migliore

Hey Tony,

I think what you are missing is the following.

  1. Remember to enable the Technical Features check box under Settings - Users - Admin (or your User) - Access Rights Tab. Log out and log in to apply extra features. I found useful to enable this, as many options, in many modules don't show without this active.
  2. Go to Settings - General Settings - and check "Allow users to import data from CSV files"
  3. Now, you will be able to see the Import option and, if you check any fields, under the "More" top central dropdown menu, the Export option will appear.
  4. Remember that this options often appear inside each module and not in the Configuration or General Settings.
  5. And for example, in the customer option, under Sales - Customers. To see the Import/Export option, you have to change the view from Kanban View to List View, using the top right view icons.

Cheers!

Santiago

0
Avatar
Abbandona
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
update contact list language encountering issue
import contacts
Avatar
0
mar 24
2019
Importation contacts dans Odoo V17
import contacts
Avatar
0
dic 23
2286
Import contacts avoiding duplicates Risolto
import contacts
Avatar
Avatar
Avatar
Avatar
3
ott 23
5849
How do I associate a contact to several Companies
contacts companies
Avatar
0
lug 23
2520
Created multi companies instead of contacts
contacts companies
Avatar
Avatar
1
mar 15
4916
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now