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

I am providing a csv file containing for example __export__.res_partner_22 external id to the record(s). When the csv is imported, the id is not the one I provided.

How is supposed to maintain relationships between old records if this happens?



อวตาร
ละทิ้ง

Are you importing the CSV file via the User Interface? A module? If via the User Interface, what field are you mapping the External ID field to?

ผู้เขียน

Thanks, @Ray Carnes seems I found the answer myself.. I was wrong in something. Here's the post.

ผู้เขียน

In the original question, I inferred that id and external_id should preserve the same number, and I was wrong in that.

ผู้เขียน คำตอบที่ดีที่สุด

It doesn't matter if the database id changes between ols and new databases:

the partner id could be "156", but the external id preserves the old (__export__.res_partner_22), so this way the relationship between (for example user_id) is preserved. The only difference is that in old database:

id = 22

external id: *_22

and in the new database:

id = 156

external id: *_22



อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 18
3480
1
มี.ค. 16
3427
2
มี.ค. 15
10854
1
มี.ค. 15
9055
1
ก.พ. 21
4633