İçereği Atla
Menü
Bu soru işaretlendi
10 Cevaplar
5210 Görünümler

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

Avatar
Vazgeç
En İyi Yanı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.

Avatar
Vazgeç
Üretici

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.

En İyi Yanıt

The name has to be unique for this to work.

Avatar
Vazgeç
Üretici

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 ?

Üretici

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 ?

Üretici

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.

En İyi Yanıt

have you manage to solve these ?

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Kas 24
2044
1
Kas 24
2801
1
Eki 23
3496
3
Ara 23
21352
0
May 21
8184