From e9d83303d3b1a2b4607f9d2d53ddc0012fb759cd Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 23 Mar 2015 17:05:19 +0530 Subject: [PATCH] create manufacturing activity type via patch only if setup completed --- erpnext/patches/v5_0/manufacturing_activity_type.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v5_0/manufacturing_activity_type.py b/erpnext/patches/v5_0/manufacturing_activity_type.py index 5988dd3f81..f0768322e2 100644 --- a/erpnext/patches/v5_0/manufacturing_activity_type.py +++ b/erpnext/patches/v5_0/manufacturing_activity_type.py @@ -4,7 +4,7 @@ import frappe def execute(): - if not frappe.db.exists('Activity Type','Manufacturing'): + if not frappe.db.exists('Activity Type','Manufacturing') and frappe.get_all("Company"): frappe.get_doc({ "doctype": "Activity Type", "activity_type": "Manufacturing"