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


I'm trying to add some values to Odoo 17 (specifically countries). 

Some names have commas in them. What structure should I follow for a CSV file?


For example, "Bonaire, Sint Eustatius and Saba" is a country/region, and the comma is part of the name. So, for Odoo to understand it correctly, it must be entered together. 


What should be the Formatting (Encoding, Separator, Text Delimiter) and structure in the CSV file so that Odoo can distinguish that it is a single name?


countries.csv

1.Name,​Countries
2.​World,"Algeria,Antigua and Barbuda,Bahamas,"Bonaire, Sint Eustatius and Saba""
3.Europe,​"Austria,Belgium,Bulgaria,Croatia"


Thank you in advance for your answers.


アバター
破棄
最善の回答

Hi Vasilis Zartilas,

You can use following format:

"id","name","code"

1,"Bonaire, Sint Eustatius and Saba","BQ" 2,"Saint Kitts and Nevis","KN" 3,"United States","US"

Thank you

アバター
破棄
著作者

Hi Mishri,

Maybe it's my mistake, but in the CSV file above, the numbers in front symbolize the lines in the file and not the ID.

The "Name" field is the category of countries, where countries are divided into European and non-European. The "Countries" field contains the names of the countries, so your example does not help me.

Thank you, however, for your response.

関連投稿 返信 ビュー 活動
2
3月 23
2344
1
7月 25
401
2
5月 25
1291
4
5月 25
4962
0
11月 24
1178