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("hr", "doctype", "leave_application")
frappe.reload_doc("workflow", "doctype", "workflow") frappe.reload_doc("workflow", "doctype", "workflow")
doc = frappe.get_doc({ frappe.get_doc({
'doctype': 'Workflow State', 'doctype': 'Workflow State',
'workflow_state_name': 'Open', 'workflow_state_name': 'Open',
'style': 'Warning' 'style': 'Warning'
}).insert(ignore_permissions=True) }).insert(ignore_permissions=True)
doc = frappe.get_doc({ frappe.get_doc({
'doctype': 'Workflow', 'doctype': 'Workflow',
'workflow_name': 'Leave Approval', 'workflow_name': 'Leave Approval',
'document_type': 'Leave Application', 'document_type': 'Leave Application',