brotherton-erpnext/erpnext/patches/v7_1/set_currency_exchange_date.py

9 lines
217 B
Python

import frappe
def execute():
frappe.reload_doctype("Currency Exchange")
frappe.db.sql("""
update `tabCurrency Exchange`
set `date` = '2010-01-01'
where date is null or date = '' or date = '0000-00-00'
""")