fix: Reload doc in patch
diff --git a/erpnext/patches/v12_0/create_accounting_dimensions_in_missing_doctypes.py b/erpnext/patches/v12_0/create_accounting_dimensions_in_missing_doctypes.py
index 1796c53..b71ea66 100644
--- a/erpnext/patches/v12_0/create_accounting_dimensions_in_missing_doctypes.py
+++ b/erpnext/patches/v12_0/create_accounting_dimensions_in_missing_doctypes.py
@@ -3,6 +3,9 @@
 from frappe.custom.doctype.custom_field.custom_field import create_custom_field
 
 def execute():
+
+	frappe.reload_doc('accounts', 'doctype', 'accounting_dimension')
+
 	accounting_dimensions = frappe.db.sql("""select fieldname, label, document_type, disabled from
 		`tabAccounting Dimension`""", as_dict=1)