mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 01:25:07 +00:00
create manufacturing activity type via patch only if setup completed
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user