import frappe from erpnext.setup.install import setup_currency_exchange def execute(): frappe.reload_doc("accounts", "doctype", "currency_exchange_settings_result") frappe.reload_doc("accounts", "doctype", "currency_exchange_settings_details") frappe.reload_doc("accounts", "doctype", "currency_exchange_settings") setup_currency_exchange()