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

how to update record from CSV file using default odoo import feature through name, not by external Id?

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

If it creates new records, then the name is not unique. You may also want to check languages and translations or any hidden/non-obvious characters.

อวตาร
ละทิ้ง
ผู้เขียน

Thanks for your answer. But, there is not any issue with language. Will it identify the unique record from the name automatically?

As I know, odoo identifies the unique record using external ID.

คำตอบที่ดีที่สุด

The name has to be unique for this to work.

อวตาร
ละทิ้ง
ผู้เขียน

Yup name is unique. But currently, it happens that when I am uploading the file with same name, it generates a new record. Now, I want that if the name is same, the record must be updated.

Which model are you trying to load data into ?

ผู้เขียน

Its my custom model. Which has only two columns, name and other one.

Is the name field called "name" ?

Have you set it's attributes as Required, Stored and Indexed ?

ผู้เขียน

Yes the field name is "name". But, I have not set Required, Stored and Indexed. Should I need to set it?

Yes. Set it to Required, Stored and Indexed.

คำตอบที่ดีที่สุด

have you manage to solve these ?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ย. 24
2055
1
พ.ย. 24
2811
1
ต.ค. 23
3512
3
ธ.ค. 23
21358
0
พ.ค. 21
8188