fix: Update country names (#21545)

* fix: Update country names

* fix: revert name back
This commit is contained in:
Deepesh Garg 2023-07-02 11:25:43 +05:30 committed by GitHub
parent ab42e58dcf
commit e0f35fb85f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 3 deletions

View file

@ -669,7 +669,7 @@
"currency_fraction_units": 100,
"isd": "+242"
},
"Congo, The Democratic Republic of the": {
"Congo, Democratic Republic of the": {
"code": "cd",
"number_format": "#,###.##",
"currency": "CDF",
@ -2632,7 +2632,7 @@
],
"isd": "+992"
},
"Tanzania": {
"Tanzania, United Republic of": {
"code": "tz",
"currency": "TZS",
"currency_name": "Tanzanian Shilling",
@ -2913,7 +2913,7 @@
"currency_fraction_units": 100,
"isd": "+58"
},
"Vietnam": {
"Viet Nam": {
"code": "vn",
"currency": "VND",
"currency_name": "Dong",

View file

@ -226,3 +226,4 @@ frappe.desk.doctype.form_tour.patches.introduce_ui_tours
execute:frappe.delete_doc_if_exists("Workspace", "Customization")
execute:frappe.db.set_single_value("Document Naming Settings", "default_amend_naming", "Amend Counter")
execute:frappe.delete_doc_if_exists("DocType", "Error Snapshot")
frappe.patches.v14_0.update_country_names

View file

@ -0,0 +1,12 @@
import frappe
def execute():
country_info_map = {
"Tanzania": "Tanzania, United Republic of",
"Vietnam": "Viet Nam",
"Congo, The Democratic Republic of the": "Congo, Democratic Republic of the",
}
for old, new in country_info_map.items():
frappe.rename_doc("Country", old, new, force=True)