Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
10 Antwoorden
5231 Weergaven

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

Avatar
Annuleer
Beste antwoord

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
Annuleer
Auteur

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 antwoord

The name has to be unique for this to work.

Avatar
Annuleer
Auteur

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 ?

Auteur

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 ?

Auteur

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 antwoord

have you manage to solve these ?

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
nov. 24
2057
1
nov. 24
2814
1
okt. 23
3516
3
dec. 23
21361
0
mei 21
8188