diff --git a/erpnext/patches/v13_0/update_exchange_rate_settings.py b/erpnext/patches/v13_0/update_exchange_rate_settings.py index b7ec232bbae..ed11c627d97 100644 --- a/erpnext/patches/v13_0/update_exchange_rate_settings.py +++ b/erpnext/patches/v13_0/update_exchange_rate_settings.py @@ -4,7 +4,7 @@ from erpnext.setup.install import setup_currency_exchange def execute(): - frappe.reload_doc("accounts", "doctype", "currency_exchange_settings") frappe.reload_doc("accounts", "doctype", "currency_exchange_settings_result") frappe.reload_doc("accounts", "doctype", "currency_exchange_settings_details") - setup_currency_exchange() \ No newline at end of file + frappe.reload_doc("accounts", "doctype", "currency_exchange_settings") + setup_currency_exchange() diff --git a/erpnext/patches/v14_0/update_opportunity_currency_fields.py b/erpnext/patches/v14_0/update_opportunity_currency_fields.py index 75049a6e8a5..0d11c7aaa0c 100644 --- a/erpnext/patches/v14_0/update_opportunity_currency_fields.py +++ b/erpnext/patches/v14_0/update_opportunity_currency_fields.py @@ -6,6 +6,7 @@ from erpnext.setup.utils import get_exchange_rate def execute(): + frappe.reload_doctype("Opportunity") opportunities = frappe.db.get_list('Opportunity', filters={ 'opportunity_amount': ['>', 0] }, fields=['name', 'company', 'currency', 'opportunity_amount'])