mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
fixes
This commit is contained in:
@@ -31,6 +31,13 @@ def leave_application_workflow():
|
|||||||
'style': style
|
'style': style
|
||||||
}).insert(ignore_permissions=True)
|
}).insert(ignore_permissions=True)
|
||||||
|
|
||||||
|
for action in ['Approve', 'Reject']:
|
||||||
|
if not frappe.db.exists("Workflow Action", action):
|
||||||
|
frappe.get_doc({
|
||||||
|
'doctype': 'Workflow Action',
|
||||||
|
'workflow_action_name': action
|
||||||
|
}).insert(ignore_permissions=True)
|
||||||
|
|
||||||
if not frappe.db.exists("Workflow", "Leave Approval"):
|
if not frappe.db.exists("Workflow", "Leave Approval"):
|
||||||
frappe.get_doc({
|
frappe.get_doc({
|
||||||
'doctype': 'Workflow',
|
'doctype': 'Workflow',
|
||||||
|
|||||||
Reference in New Issue
Block a user