Add Patch to update existing records

This commit is contained in:
Shreya 2018-05-15 17:50:52 +05:30
parent 3f77852e93
commit acc4ceceb7
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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""")