Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1432 Widoki


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.


Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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.

Powiązane posty Odpowiedzi Widoki Czynność
2
mar 23
2344
1
lip 25
401
2
maj 25
1291
4
maj 25
4962
0
lis 24
1178