reload budget doctype in patch
diff --git a/erpnext/patches/v7_0/create_budget_record.py b/erpnext/patches/v7_0/create_budget_record.py
index 0585edb..7a0587e 100644
--- a/erpnext/patches/v7_0/create_budget_record.py
+++ b/erpnext/patches/v7_0/create_budget_record.py
@@ -1,6 +1,9 @@
import frappe
def execute():
+ frappe.reload_doc("accounts", "doctype", "budget")
+ frappe.reload_doc("accounts", "doctype", "budget_account")
+
existing_budgets = frappe.db.sql("""
select
cc.name, cc.company, cc.distribution_id,