[minor] reload Domain doctype before executing patch
This commit is contained in:
parent
3d6697949c
commit
2ea55c7143
@ -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}):
|
||||
|
Loading…
x
Reference in New Issue
Block a user