Skip to Content
Menu
This question has been flagged
1 Reply
1429 Views


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.


Avatar
Discard
Best Answer

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

Avatar
Discard
Author

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.

Related Posts Replies Views Activity
2
Mar 23
2343
1
Jul 25
394
2
May 25
1278
4
May 25
4946
0
Nov 24
1177