Add Patch to update existing records
This commit is contained in:
parent
3f77852e93
commit
acc4ceceb7
@ -537,3 +537,4 @@ erpnext.patches.v11_0.rename_supplier_type_to_supplier_group
|
||||
erpnext.patches.v11_0.create_department_records_for_each_company
|
||||
erpnext.patches.v11_0.make_location_from_warehouse
|
||||
erpnext.patches.v11_0.make_asset_finance_book_against_old_entries
|
||||
erpnext.patches.v11_0.check_buying_selling_in_currency_exchange
|
||||
|
@ -0,0 +1,5 @@
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
frappe.reload_doc('setup', 'doctype', 'currency_exchange')
|
||||
frappe.db.sql("""update `tabCurrency Exchange` set for_buying = 1, for_selling = 1""")
|
Loading…
Reference in New Issue
Block a user