Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Odoo 18: import documents and contacts and link them

Subscriure's

Get notified when there's activity on this post

This question has been flagged
importdocuments
2 Respostes
2679 Vistes
Avatar
Derk Lebbink

Odoo 18
Enterprise

Whats the fastest way to link 500+ documents to contacts?

Is there a field I can use during importing my contacts which can link their ID to the name of the document or something along the lines of that?

MySQL maybe?

Thanks in advance

0
Avatar
Descartar
Avatar
Christoph Farnleitner
Best Answer

You'll have to do it in (slightly) more than just one step, but yes, it's perfectly doable in Odoo.

First, upload your files with an unique name to the Documents app:

The explorer / files window of your OS will allow you to select multiple files (for Windows and Linux this would be done with [Ctrl]+Click - on the file name, I'm sure mac OS has something similar).


To better illustrate it, I've uploaded three random (xlsx) documents to demo.odoo.com, two to the 'Projects' folder, one to the 'Support' folder:


Now, while you could simply set the related Contact directly from here (either in the left hand side Info Section, or by directly clicking on a field in the list to set a Contact for all currently select Documents), granted, for 500+ files this might be tedious. 


So, to import Contacts (or update existing Contacts) via CSV or XLSX, your import file structure would have to look like this:

id email name document_ids
hr.work_contact_hne abigail.peterson39@example.com Abigail Peterson Contact (res.partner) (5).xlsx



Contact (res.partner) (6).xlsx



Contact (res.partner) (7).xlsx

jane@acme.com Jane Doe

john@example.com John Doe a random file.pdf


Note how row 3 and 4 are pretty much empty, apart from the document_ids. This structure allows you to assign multiple records (not limited to Documents) to the line above. So here we have the contacts 

  • Abigail Peterson that should get three files assigned to her ('Contact (res.partner) (5).xlsx', 'Contact (res.partner) (9).xlsx', 'Contact (res.partner) (7).xlsx')
  • Jane Doe without any files
  • John Doe with one file ('a random file.pdf')

Also, having an ID set in the fist column means that Odoo will try to find a matching contact with that (external) ID, or if none found, create a new one - with that ID. For lines without an ID Odo will Always consider it a new record and assign it an ID upon importing.


Upon importing your Contacts file, the wizard now should look similar to this:


And once imported, your Contacts, i.e. Abigail Peterson, will hold a link to these Documents:


For further details see also https://www.odoo.com/documentation/18.0/applications/essentials/export_import_data.html


Please note: If Documents got added by other means or have i.e. been generated and stored by Odoo itself, or if multiple files with the same name got uploaded, things may get a bit more messy due to the fact that we can't rely on the document name being the unique ID to assign files to contacts! To gain knowledge of the required ID for these files then you would first need to export a list of all Documents in order to find the 'external ID' needed.

2
Avatar
Descartar
Avatar
jacks wills
Best Answer

In Odoo 18, import documents and contacts via CSV, then link them using contact IDs or related fields.

0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
import word document in odoo 9
import documents
Avatar
Avatar
Avatar
3
de nov. 16
5480
Issue with import and comma in Excel File (odoo 19)
import
Avatar
0
de set. 25
234
Importacion de Atributos y Valores
import
Avatar
Avatar
Avatar
2
de maig 25
2264
Import from Winbooks Solved
import
Avatar
Avatar
Avatar
Avatar
Avatar
4
de maig 25
6656
can i import journal entries from Excel
import
Avatar
Avatar
1
d’ag. 24
3434
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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