reload journal entry on patch
diff --git a/erpnext/patches/v5_0/update_journal_entry_title.py b/erpnext/patches/v5_0/update_journal_entry_title.py
index 59e6f41..d1b1d40 100644
--- a/erpnext/patches/v5_0/update_journal_entry_title.py
+++ b/erpnext/patches/v5_0/update_journal_entry_title.py
@@ -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`