fix: patch depends on Currency Exchange Settings (#34494)

This commit is contained in:
Raffael Meyer 2023-03-19 13:35:12 +01:00 committed by GitHub
parent ca10e2bb9f
commit d791dc11a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,9 @@ from erpnext.setup.utils import get_exchange_rate
def execute():
frappe.reload_doc(
"accounts", "doctype", "currency_exchange_settings"
) # get_exchange_rate depends on Currency Exchange Settings
frappe.reload_doctype("Opportunity")
opportunities = frappe.db.get_list(
"Opportunity",