Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
10 Vastaukset
5208 Näkymät

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

Avatar
Hylkää
Paras vastaus

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
Hylkää
Tekijä

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.

Paras vastaus

The name has to be unique for this to work.

Avatar
Hylkää
Tekijä

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 ?

Tekijä

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 ?

Tekijä

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.

Paras vastaus

have you manage to solve these ?

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
marrask. 24
2039
1
marrask. 24
2798
1
lokak. 23
3496
3
jouluk. 23
21350
0
toukok. 21
8182