diff --git a/frappe/geo/doctype/country/country.py b/frappe/geo/doctype/country/country.py index 5738a1837d..8b1ec1364f 100644 --- a/frappe/geo/doctype/country/country.py +++ b/frappe/geo/doctype/country/country.py @@ -29,6 +29,8 @@ def get_countries_and_currencies(): countries = [] currencies = [] + added_currencies = set() + for name, country in data.items(): country = frappe._dict(country) countries.append( @@ -42,7 +44,9 @@ def get_countries_and_currencies(): time_zones="\n".join(country.timezones or []), ) ) - if country.currency: + if country.currency and country.currency not in added_currencies: + added_currencies.add(country.currency) + currencies.append( frappe.get_doc( doctype="Currency",