fix: Update country names (#21545)
* fix: Update country names * fix: revert name back
This commit is contained in:
parent
ab42e58dcf
commit
e0f35fb85f
3 changed files with 16 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
12
frappe/patches/v14_0/update_country_names.py
Normal file
12
frappe/patches/v14_0/update_country_names.py
Normal 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)
|
||||
Loading…
Add table
Reference in a new issue