[minor] reload Domain doctype before executing patch
diff --git a/erpnext/patches/v8_0/create_domain_docs.py b/erpnext/patches/v8_0/create_domain_docs.py
index 7e303c1..a6fcb86 100644
--- a/erpnext/patches/v8_0/create_domain_docs.py
+++ b/erpnext/patches/v8_0/create_domain_docs.py
@@ -7,6 +7,7 @@
def execute():
"""Create domain documents"""
+ frappe.reload_doctype("Domain")
for domain in ("Distribution", "Manufacturing", "Retail", "Services", "Education"):
if not frappe.db.exists({'doctype': 'Domain', 'domain': domain}):