From 1e693fe6c97a717dc0c9b9219787408313337aa5 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 17 Jul 2018 16:08:39 +0530 Subject: [PATCH] Replaced spaces with tabs --- .../patches/v11_0/set_department_for_doctypes.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/erpnext/patches/v11_0/set_department_for_doctypes.py b/erpnext/patches/v11_0/set_department_for_doctypes.py index 9edadd9c60..274190833e 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 @@ import frappe # 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