Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

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

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
importcontactscompanies
18 Respuestas
22148 Vistas
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
Descartar
Avatar
Martin
Mejor respuesta

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
Descartar
Rex Thain
Autor

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
Autor

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
Autor

@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
Autor

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
Autor

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
Autor

(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
Mejor respuesta

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
Descartar
Avatar
Tony
Mejor respuesta

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
Descartar
Avatar
Santiago
Mejor respuesta

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
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
update contact list language encountering issue
import contacts
Avatar
0
mar 24
1944
Importation contacts dans Odoo V17
import contacts
Avatar
0
dic 23
2219
Import contacts avoiding duplicates Resuelto
import contacts
Avatar
Avatar
Avatar
Avatar
3
oct 23
5714
How do I associate a contact to several Companies
contacts companies
Avatar
0
jul 23
2479
Created multi companies instead of contacts
contacts companies
Avatar
Avatar
1
mar 15
4867
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

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