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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user