Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
10 Відповіді
5236 Переглядів

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
2061
1
лист. 24
2815
1
жовт. 23
3527
3
груд. 23
21366
0
трав. 21
8196