Skip to content

Commit

Permalink
fix: patch to update Currency Exchange Settings for frankfurter.app
Browse files Browse the repository at this point in the history
… (backport #43481) (#43483)

Co-authored-by: Sagar Vora <sagar@resilient.tech>
  • Loading branch information
mergify[bot] and sagarvora authored Oct 2, 2024
1 parent 562327f commit 35a08f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -377,3 +377,4 @@ erpnext.patches.v15_0.drop_index_posting_datetime_from_sle
erpnext.patches.v15_0.add_disassembly_order_stock_entry_type #1
erpnext.patches.v15_0.set_standard_stock_entry_type
erpnext.patches.v15_0.link_purchase_item_to_asset_doc
erpnext.patches.v14_0.update_currency_exchange_settings_for_frankfurter
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import frappe


def execute():
settings = frappe.get_doc("Currency Exchange Settings")
if settings.service_provider != "frankfurter.app":
return

settings.set_parameters_and_result()
settings.flags.ignore_validate = True
settings.save()

0 comments on commit 35a08f8

Please sign in to comment.