create manufacturing activity type via patch only if setup completed
This commit is contained in:
parent
f2eed445e5
commit
e9d83303d3
@ -4,7 +4,7 @@
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
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({
|
frappe.get_doc({
|
||||||
"doctype": "Activity Type",
|
"doctype": "Activity Type",
|
||||||
"activity_type": "Manufacturing"
|
"activity_type": "Manufacturing"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user