Replaced spaces with tabs
diff --git a/erpnext/patches/v11_0/set_department_for_doctypes.py b/erpnext/patches/v11_0/set_department_for_doctypes.py
index 9edadd9..2741908 100644
--- a/erpnext/patches/v11_0/set_department_for_doctypes.py
+++ b/erpnext/patches/v11_0/set_department_for_doctypes.py
@@ -3,15 +3,14 @@
 # Set department value based on employee value
 
 def execute():
+	doctypes_to_update = ['Appraisal', 'Leave Allocation', 'Expense Claim', 'Instructor', 'Salary Slip',
+		'Attendance', 'Training Feedback', 'Training Result Employee',
+		'Leave Application', 'Employee Advance', 'Activity Cost', 'Training Event Employee',
+		'Timesheet', 'Sales Person', 'Payroll Employee Detail']
 
-    doctypes_to_update = ['Appraisal', 'Leave Allocation', 'Expense Claim', 'Instructor', 'Salary Slip',
-        'Attendance', 'Training Feedback', 'Training Result Employee',
-        'Leave Application', 'Employee Advance', 'Activity Cost', 'Training Event Employee',
-        'Timesheet', 'Sales Person', 'Payroll Employee Detail']
-
-    for doctype in doctypes_to_update:
+	for doctype in doctypes_to_update:
 		if frappe.db.table_exists(doctype):
 			frappe.db.sql("""
 				update `tab%s` dt
 				set department=(select department from `tabEmployee` where name=dt.employee)
-			""" % doctype)
+			""" % doctype)
\ No newline at end of file