Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

Import contacts through CSV

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
importcsv
2 Odpowiedzi
11955 Widoki
Awatar
Gerard

Hello,

I have a list of companies in OpenERP 7 with external IDs. Now I want to import their contacts (different csv), but I can't find how to make the relation based on the External ID.

For example i want to import two contacts that belong to company 1. (one-to-many). I tried the following...

"Company / External id","Name","Is a Company"

1,"Person A", "false"

1,"Person B","false"

But sadly no success... can anyone please help me.

0
Awatar
Odrzuć
Awatar
Ludo - 21South
Najlepsza odpowiedź

New answer, based on a real life example. This is a simple export from an exisiting database that already had a company and PersonA under that company. Based on the situation you provided, you will only have the first line (id 183, Company1) and need to provide the second line. This is how it should look:

  • "id", "name", "is_company", "parent_id/id", "company_id/id"
  • "__export__.res_partner_183", "Company1","True","","base.main_company"
  • "__export__.res_partner_184","PersonA","False","__export__.res_partner_183","base.main_company"

Of course, you need to replace the actual ID (183 / 184) with your own id's. Note that the parent_id/id field on the first line is actually empty, since it does not have a parent id.

0
Awatar
Odrzuć
Awatar
Gerard
Autor Najlepsza odpowiedź

Solved:

'parent_id/id' is the same as 'Related Company / External ID' from the pull-down.

File A
"ID","Is a Company","name"
"1","True","Company 1"

File B
"id","name","parent_id/id"
"","Person A","1"
"","Person B","1"
"","Person C","1"

1
Awatar
Odrzuć
Ludo - 21South

I see. The external id is than used for your own company (in the case of a multi-company setting for example). Try to look for "parent_id" on the record instead. Fill in the "__res.... etc." id in that field and you should be fine. Leave the ID field of the new contact persons empty. If it is empty, it will supply the default values for it.

Gerard
Autor

Hi Ludo, Thanks again for the quick answer. I went back to basic and started with a fresh install (only the CRM module) to replicate your example. Your first line "__res.partner__.4", "My customer comp" gave an error "Too many dots". :( Can you help out with a working example? I have been at it for a week now and it's driving me nuts. Your help is much appreciated .

Ludo - 21South

I modified my original answer, see above.

Gerard
Autor

We are on the same track. I have exported some demo-content and got the same indentifiers. The problem is now which field do I select from the pull-down (screenshot: http://snag.gy/wRY8P.jpg)

Ludo - 21South

I do not know how you import your files, but in general I export a file using the setting "Import compatible", manipulate that file and then at the partner list view use the "Import" button, next to the "Create" to import a file. Simply select the file, click on "Validate" and it shows you a green bar if it could find anything. The only important thing is that you always leave the header of the file intact, because that should show the fields to import. Got no "Import" option next to the Create button? Go to Settings --> Configuration --> General and check the box "Allow users to import data using CSV files" and press apply.

Gerard
Autor

That's my way of importing and exporting as well... The only thing missing... is the parent_id... Maybe I was too frustrated to see it, but 'parent_id/id' is the same as 'Related Company / External ID' from the pull-down. Now it works!!! Thank you for your support and patience.

Ludo - 21South

You are welcome. If it helped you, mark the answer as correct.

Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Disable automatic follow when importing res.partner csv
import csv
Awatar
Awatar
Awatar
3
cze 20
4859
Enable/disable import rights?
import csv
Awatar
Awatar
1
lis 18
10359
'utf8' codec can't decode byte error when importing a list of products as a CSV file Rozwiązane
import csv
Awatar
Awatar
Awatar
Awatar
Awatar
11
lut 17
64873
Import csv file with related field other than id, external id, name
import csv importing data from excel file
Awatar
Awatar
Awatar
Awatar
4
lis 24
12692
How to convert csv files encoding to utf-8 Rozwiązane
import csv encoding
Awatar
Awatar
Awatar
2
lis 24
38794
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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