跳至内容
Odoo 菜单
  • 登录
  • 免费试用
  • 应用程序
    财务
    • 会计
    • 发票
    • 费用
    • 电子表格 (BI)
    • 文档
    • 电子签名
    销售
    • 客户关系管理
    • 销售
    • POS 销售点管理-零售
    • POS 销售点管理 - 餐厅
    • 订阅
    • 租赁
    网站
    • 网站设计
    • 电子商务
    • 博客
    • 论坛
    • 在线客服
    • 在线学习
    供应链
    • 库存
    • 制造
    • 产品生命周期
    • 采购
    • 维护保养
    • 品控
    人力资源
    • 员工
    • 招聘
    • 休假
    • 评价
    • 内部推荐
    • 车队
    营销
    • 社媒营销
    • 电邮营销
    • 短信营销
    • 近期活动
    • 营销自动化
    • 网上调查
    服务
    • 项目管理
    • 工时单
    • 现场服务
    • 服务台
    • 排期
    • 预约
    生产力
    • 讨论
    • 批核
    • IoT物联网
    • VoIP
    • 知识库
    • WhatsApp
    第三方应用软件 Odoo 定制 Odoo云端平台
  • 行业
    零售
    • 书店
    • 服装店
    • 家具店
    • 食品杂货店
    • 五金店
    • 玩具店
    餐饮与酒店服务
    • 酒吧及酒馆
    • 餐厅
    • 快餐
    • 民宿
    • 饮品分销商
    • 酒店
    房地产
    • 房地产代理
    • 建筑师事务所
    • 建造业
    • 地产管理
    • 园艺
    • 业主协会
    咨询
    • 会计师事务所
    • Odoo合作伙伴
    • 市场推广公司
    • 律师事务所
    • 人才招聘
    • 审核 & 认证
    制造
    • 纺织
    • 金属
    • 家具
    • 食品
    • 啤酒厂
    • 企业礼品
    保健与健身
    • 体育俱乐部
    • 眼镜店
    • 健身中心
    • 健康从业者
    • 药房
    • 发型屋
    商贸服务
    • 维修人员
    • IT 硬件及支持
    • 太阳能系统
    • 鞋匠
    • 清洁服务
    • 暖通空调服务
    其他
    • 非营利组织
    • 环境机构
    • 广告牌租赁
    • 摄影服务
    • 自行车租赁
    • 软件经销商
    浏览所有行业
  • 社区
    学习
    • 教学视频
    • 文档
    • 认证
    • 培训
    • 博客
    • 播客
    赋能教育
    • 教育计划
    • 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:

  • 客户关系管理
  • 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 回复
22258 查看
形象
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
3月 24
1995
Importation contacts dans Odoo V17
import contacts
形象
0
12月 23
2255
Import contacts avoiding duplicates 已解决
import contacts
形象
形象
形象
形象
3
10月 23
5800
How do I associate a contact to several Companies
contacts companies
形象
0
7月 23
2510
Created multi companies instead of contacts
contacts companies
形象
形象
1
3月 15
4913
社区
  • 教学视频
  • 文档
  • 论坛
开源
  • 下载
  • Github
  • Runbot
  • 翻译
服务
  • Odoo.sh 托管
  • 支持
  • 升级
  • 自定义开发服务
  • 教育
  • 查找会计服务
  • 寻找合作伙伴
  • 成为合作伙伴
关于我们
  • 我们的公司
  • 品牌资产
  • 联系我们
  • 招聘
  • 近期活动
  • 播客
  • 博客
  • 客户
  • 法律 • 隐私
  • 安全
الْعَرَبيّة 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致力于为企业管理提供高效智能的开源解决方案,是全球业内高速成长的软件服务商之一,逾七百五十万用户选择Odoo进行数字化升级。通过一系列全业务链覆盖、高度集成、简单易用的商业应用,助力企业实现信息化改革、降本增效并释放公司增长潜力。

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