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"
But sadly no success... can anyone please help me.
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"
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.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/30/14, 6:37 AM|
|Seen: 1906 times|
|Last updated: 3/16/15, 8:10 AM|