Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
1441 Visninger


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
Kassér
Bedste svar

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
Kassér
Forfatter

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 Besvarelser Visninger Aktivitet
2
mar. 23
2348
1
jul. 25
405
2
maj 25
1295
4
maj 25
4975
0
nov. 24
1190