Перейти к содержимому
Odoo Меню
  • Войти
  • Попробовать бесплатно
  • Модули
    Финансы
    • Бухгалтерия
    • Выставление счетов
    • Расходы
    • Таблицы
    • Документооборот
    • Подпись
    Продажи
    • CRM
    • Продажи
    • POS Магазин
    • POS Ресторан
    • Подписки
    • Аренда
    Вебсайты
    • Конструктор вебсайтов
    • eCommerce
    • Блог
    • Форум
    • Онлайн-чат
    • Электронное обучение
    Логистика
    • Склад
    • Производство
    • PLM
    • Закупки
    • Обслуживание
    • Качество
    Отдел кадров
    • Сотрудники
    • Подбор персонала
    • Отпуска
    • Оценка персонала
    • Реферальная программа
    • Автопарк
    Маркетинг
    • SMM
    • E-mail рассылки
    • СМС рассылки
    • Мероприятия
    • Автоматизация маркетинга
    • Опросы
    Услуги
    • Проекты
    • Табели
    • Выездной сервис
    • Поддержка
    • Планирование
    • Встречи
    Продуктивность
    • Обсуждения
    • Согласование
    • IoT
    • VoIP-телефония
    • Knowledge
    • WhatsApp
    Сторонние приложения Модуль Студия Odoo Платформа Odoo Cloud
  • Индустрии
    Розничная торговля
    • Книжный магазин
    • Магазин одежды
    • Мебельный магазин
    • Продуктовый магазин
    • Строительный магазин
    • Магазин игрушек
    Гостинично-ресторанный бизнес
    • Бар и паб
    • Ресторан
    • Фастфуд
    • Гостевой дом
    • Дистрибьютор напитков
    • Отель
    Недвижимость
    • Агентство недвижимости
    • Архитектурное бюро
    • Строительство
    • Управление недвижимостью
    • Ландшафтный дизайн
    • Товарищество собственников жилья
    Консалтинг
    • Бухгалтерская фирма
    • Партнер Odoo
    • Маркетинговое агентство
    • Юридическая фирма
    • Подбор персонала
    • Аудиторское бюро
    Производство
    • Текстиль
    • Металл
    • Мебель
    • Продукты питания
    • Пивоварня
    • Корпоративные сувениры
    Здоровье и фитнес
    • Спортивный комплекс
    • Магазин оптики
    • Фитнес-клуб
    • Велнес-центр
    • Аптека
    • Салон красоты
    Услуги
    • Специалист по бытовым услугам
    • Продажа и обслуживание IT-оборудования
    • Солнечные энергосистемы
    • Производство обуви
    • Клининг
    • Системы ОВКВ
    Прочее
    • Некоммерческая организация
    • Консалтинг в сфере устойчивого развития
    • Аренда рекламных щитов
    • Бизнес по фотосъемке
    • Прокат велосипедов
    • Реселлер программного обеспечения
    Все индустрии
  • Community
    Обучение
    • Видео уроки
    • Документация
    • Сертификация
    • Тренинг
    • Блог
    • Подкаст
    Образование и развитие
    • Образовательная программа
    • Деловая игра Scale Up!
    • Экскурсия в офис Odoo
    ПО
    • Скачать
    • Сравнить версии
    • Релизы
    Сотрудничество
    • Github
    • Форум
    • Мероприятия
    • Перевод
    • Стать партнером
    • Услуги для партнеров
    • Зарегистрировать бухгалтерскую фирму
    Услуги
    • Найти партнера
    • Найти бухгалтера
    • Встреча с экспертом
    • Услуги по внедрению
    • Отзывы клиентов
    • Поддержка
    • Обновления
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Заказать демонстрацию
  • Цены
  • Поддержка

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

  • CRM
  • e-Commerce
  • Бухгалтерия
  • Склад
  • PoS
  • Проекты
  • MRP
All apps
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Все посты Люди Значки
Теги (Смотреть все)
odoo accounting v14 pos v15
Об этом форуме
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Все посты Люди Значки
Теги (Смотреть все)
odoo accounting v14 pos v15
Об этом форуме
Помощь

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

Подписаться

Получайте уведомления о появлении активности в этом посте

Этот вопрос был отмечен
importcontactscompanies
18 Ответы
22326 Представления
Аватар
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
Аватар
Отменить
Аватар
Martin
Лучший ответ

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
Аватар
Отменить
Rex Thain
Автор

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
Автор

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
Автор

@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
Автор

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
Автор

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
Автор

(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?

Аватар
Ossi Mantylahti
Лучший ответ

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
Аватар
Отменить
Аватар
Tony
Лучший ответ

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
Аватар
Отменить
Аватар
Santiago
Лучший ответ

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
Аватар
Отменить
Не оставайтесь в стороне – присоединяйтесь к обсуждению!

Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!

Регистрация
Похожие посты Ответы Просмотры Активность
update contact list language encountering issue
import contacts
Аватар
0
мар. 24
2025
Importation contacts dans Odoo V17
import contacts
Аватар
0
дек. 23
2293
Import contacts avoiding duplicates Решено
import contacts
Аватар
Аватар
Аватар
Аватар
3
окт. 23
5878
How do I associate a contact to several Companies
contacts companies
Аватар
0
июл. 23
2520
Created multi companies instead of contacts
contacts companies
Аватар
Аватар
1
мар. 15
4919
Сообщество
  • Видео уроки
  • Документация
  • Форум
Открытый исходный код
  • Скачать
  • Github
  • Runbot
  • Перевод
Услуги
  • Хостинг Odoo.sh
  • Поддержка
  • Обновление
  • Индивидуальные решения по доработке
  • Образование
  • Найти бухгалтера
  • Найти партнера
  • Стать партнером
О нас
  • Наша компания
  • Активы бренда
  • Cвяжитесь с нами
  • Вакансии
  • Мероприятия
  • Подкаст
  • Блог
  • Клиенты
  • Правовые документы • Конфиденциальность
  • Безопасность
الْعَرَبيّة 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 – это набор бизнес-модулей с открытым исходным кодом, который закроет все потребности вашей компании: CRM, E-commerce, Бухгалтерия, Склад, POS, управление проектами и др.

Odoo сочетает в себе простоту использования и полную интеграцию всех бизнес-процессов в одной системе.

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