Merge pull request #9330 from mbauskar/develop
[minor] reload Domain doctype before executing patch
This commit is contained in:
commit
e159ce9a27
@ -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