Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
1433 Weergaven


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
Annuleer
Beste antwoord

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
Annuleer
Auteur

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.

Gerelateerde posts Antwoorden Weergaven Activiteit
2
mrt. 23
2344
1
jul. 25
401
2
mei 25
1291
4
mei 25
4962
0
nov. 24
1178