コンテンツへスキップ
メニュー
この質問にフラグが付けられました
10 返信
5072 ビュー

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 ?

アバター
破棄
関連投稿 返信 ビュー 活動
2
11月 24
1851
1
11月 24
2477
1
10月 23
3127
3
12月 23
20955
0
5月 21
7825