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

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

(cherry picked from commit d791dc11a3)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2023-03-20 14:27:34 +05:30
committed by GitHub
parent de5fabc67a
commit 4acde4468f

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",