跳至内容
菜单
此问题已终结
5 回复
17098 查看

I'm trying to import a list of products with the supplier (seller_ids/id)

But I don't know what to write in this column. When I export a list of products I get something like: __export__.product_supplierinfo_2 __export__.product_supplierinfo_1 in the supplier column.

I don't know what the __export__ part means either.

I think the relationship Product-Supplier is a One2Many so my guess is that I should enter some id of the supplier (not the name, or?).

Someone please help!

形象
丢弃
最佳答案

I think the export is associated with ids generated by the system. If you enter a product name into OpenERP, the application generates a unique id so that each product is unique irrespective of name. You can generate your own id before importing to the database. With the suppliers for each product, you will need to specify some other fields which are the compulsory once before you can import. eg you make need to have a min quantity and cost of the product from the supplier. If you already have the suppliers and products in the application then you will need to export them to get the ids which you will use. If you don't already, then create your product ids eg a00001 to annn...n and your suppliers or customers ids eg aa00001 to aann...n and use this when importing the product with suppliers

形象
丢弃

couldn't fit my comment here, so had to put it as an answer.

最佳答案

Kaynis is correct, in my experience. I do a lot of importing/exporting with OpenERP. the __export__ id's are basically id's that everything else will refer to that record by. I usually create that column on my own and give it a reasonable name in my csv. That way all my future imports can relate to it easier. In the question above, I might name it something like supplier.agrolait just so I can import other related information (such as products) easier by referring to supplier.agrolait, rather than the archaic string it makes for you :) Word of caution, not all external.id's are able to be imported, so test, test, test first.

PS Sorry site was being slow, accidentally messed up my comments a little bit. One other thing worth noting, AFAIK, those external ID's are not created until you export whatever area your working in.

形象
丢弃
最佳答案

hello guys 

i cant find field (seller_ids/id)  while i am trying to upload products with suppliers (csv) !! could you help me 


形象
丢弃
最佳答案

You will find a sample file that we used at Open Net for import. Product exemple replace by xls.png The file come with a .png but it's an .xls file Download the file and replace the extension, and you are done.

OK, the file is in french... but you can understand it..

形象
丢弃
相关帖文 回复 查看 活动
2
5月 15
6047
2
3月 15
9376
4
12月 23
21640
1
9月 19
3088
1
3月 15
5017