From 2ea55c71439e76d68bf988a2955ecd8efd784b51 Mon Sep 17 00:00:00 2001 From: mbauskar Date: Fri, 16 Jun 2017 14:33:59 +0530 Subject: [PATCH] [minor] reload Domain doctype before executing patch --- erpnext/patches/v8_0/create_domain_docs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/patches/v8_0/create_domain_docs.py b/erpnext/patches/v8_0/create_domain_docs.py index 7e303c1879..a6fcb86bf4 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}):