fix(patch): fallback for frankfurter settings v14 patch

(cherry picked from commit 50bb1ce31d)
This commit is contained in:
diptanilsaha
2025-12-23 16:14:19 +05:30
committed by Mergify
parent 793688710a
commit 5c9e0bba2f

View File

@@ -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