Codacy fix

This commit is contained in:
Shreya 2018-01-24 13:55:32 +05:30
parent a400e7b568
commit a309a871b5

View File

@ -8,13 +8,13 @@ def execute():
frappe.reload_doc("hr", "doctype", "leave_application")
frappe.reload_doc("workflow", "doctype", "workflow")
doc = frappe.get_doc({
frappe.get_doc({
'doctype': 'Workflow State',
'workflow_state_name': 'Open',
'style': 'Warning'
}).insert(ignore_permissions=True)
doc = frappe.get_doc({
frappe.get_doc({
'doctype': 'Workflow',
'workflow_name': 'Leave Approval',
'document_type': 'Leave Application',