Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
9806 มุมมอง

Hi,

I want import data using CSV file in res_partner table, i create CSV file like

id, name 1001, jnp

But record created with other ID, i want created record with ID that i passed in CSV is it possible..

Thansk

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

No you cannot create your own ids for the system. You have to let the system create them it is actually safer that way. You can always export the data created to retrieve the ids afterwards. Leave the id column blank and OpenERP will assign ids to each line as needed

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You can create your own External ID's for the system. This is exactly the reason the External ID field was created.

Map the field ontaining the ID you'd like to use to External_ID.

OpenERP will first check to see if a record with the same External ID exists. If it does, your import will be used to update a record. If it does not, your import will be used to create a record.

Refer to the documentation, and the help on the form where you import, for more direction.

https://doc.openerp.com/book/8/8_20_Config/8_20_Config_import_export/#importing-csv-data-to-openerp

อวตาร
ละทิ้ง

use the csv data like this : id, name -> res_patner_01 , ABCD

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
มิ.ย. 20
4070
1
พ.ย. 18
9532
11
ก.พ. 17
63880
Import contacts through CSV แก้ไขแล้ว
2
มี.ค. 15
11020
4
พ.ย. 24
11421