Merge pull request #9330 from mbauskar/develop

[minor] reload Domain doctype before executing patch
This commit is contained in:
Makarand Bauskar 2017-06-16 14:36:22 +05:30 committed by GitHub
commit e159ce9a27

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