mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 13:24:47 +00:00
Merge pull request #51285 from diptanilsaha/frankfurter-v14-patch
fix(patch): handle currency exchange settings frankfurter api update for older versions
This commit is contained in:
@@ -2,6 +2,15 @@ import frappe
|
|||||||
|
|
||||||
|
|
||||||
def execute():
|
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")
|
settings = frappe.get_doc("Currency Exchange Settings")
|
||||||
if settings.service_provider != "frankfurter.app":
|
if settings.service_provider != "frankfurter.app":
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user