brotherton-erpnext/erpnext/patches/v13_0/update_exchange_rate_settings.py
Raffael Meyer c01fe74cf0
fix(patch): fix failing patches (#30427)
* patch: reload Opportunity

* patch: reload child tables before doctype
2022-03-28 17:53:54 +05:30

11 lines
348 B
Python

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()