Skip to content

Commit

Permalink
fix: patch depends on Currency Exchange Settings (#34494)
Browse files Browse the repository at this point in the history
fix: patch depends on Currency Exchange Settings (#34494)

(cherry picked from commit d791dc1)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
  • Loading branch information
mergify[bot] and barredterra authored Mar 20, 2023
1 parent de5fabc commit 4acde44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/patches/v14_0/update_opportunity_currency_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@


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

0 comments on commit 4acde44

Please sign in to comment.