reload journal entry on patch

This commit is contained in:
Nabin Hait 2015-02-24 13:12:13 +05:30
parent b923f8a78b
commit d5616cd977

View File

@ -1,6 +1,7 @@
import frappe
def execute():
frappe.reload_doctype("Journal Entry")
frappe.db.sql("""update `tabJournal Entry` set title =
if(ifnull(pay_to_recd_from, "")!="", pay_to_recd_from,
(select account from `tabJournal Entry Account`