diff --git a/erpnext/patches/v8_0/create_domain_docs.py b/erpnext/patches/v8_0/create_domain_docs.py index 7e303c18793..a6fcb86bf4e 100644 --- a/erpnext/patches/v8_0/create_domain_docs.py +++ b/erpnext/patches/v8_0/create_domain_docs.py @@ -7,6 +7,7 @@ import erpnext 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}):