[minor] reload Domain doctype before executing patch

This commit is contained in:
mbauskar 2017-06-16 14:33:59 +05:30
parent 3d6697949c
commit 2ea55c7143

View File

@ -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}):