[patch] cleanup_journal_entry
diff --git a/erpnext/patches/v5_4/cleanup_journal_entry.py b/erpnext/patches/v5_4/cleanup_journal_entry.py
index 3ae226b..5de17c7 100644
--- a/erpnext/patches/v5_4/cleanup_journal_entry.py
+++ b/erpnext/patches/v5_4/cleanup_journal_entry.py
@@ -1,6 +1,7 @@
 import frappe
 
 def execute():
+	frappe.reload_doctype("Journal Entry")
 	for doctype, fieldname in (
 		("Sales Order", "against_sales_order"),
 		("Purchase Order", "against_purchase_order"),