Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
10 Trả lời
5216 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Câu trả lời hay nhất

The name has to be unique for this to work.

Ảnh đại diện
Huỷ bỏ
Tác giả

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 ?

Tác giả

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 ?

Tác giả

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.

Câu trả lời hay nhất

have you manage to solve these ?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 11 24
2046
1
thg 11 24
2803
1
thg 10 23
3499
3
thg 12 23
21353
0
thg 5 21
8185