Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
10 Antworten
5243 Ansichten

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

Avatar
Verwerfen
Beste Antwort

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.

Avatar
Verwerfen
Autor

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.

Beste Antwort

The name has to be unique for this to work.

Avatar
Verwerfen
Autor

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 ?

Autor

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 ?

Autor

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.

Beste Antwort

have you manage to solve these ?

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Nov. 24
2064
1
Nov. 24
2816
1
Okt. 23
3530
3
Dez. 23
21372
0
Mai 21
8198