diff --git a/erpnext/patches/v14_0/update_currency_exchange_settings_for_frankfurter.py b/erpnext/patches/v14_0/update_currency_exchange_settings_for_frankfurter.py index a67c5a26237..f8abf913e3b 100644 --- a/erpnext/patches/v14_0/update_currency_exchange_settings_for_frankfurter.py +++ b/erpnext/patches/v14_0/update_currency_exchange_settings_for_frankfurter.py @@ -2,6 +2,15 @@ import frappe def execute(): + try: + from erpnext.patches.v16_0.update_currency_exchange_settings_for_frankfurter import execute + + execute() + except ImportError: + update_frankfurter_app_parameter_and_result() + + +def update_frankfurter_app_parameter_and_result(): settings = frappe.get_doc("Currency Exchange Settings") if settings.service_provider != "frankfurter.app": return