Salary Slip Patch Fixed
diff --git a/erpnext/patches/v7_2/update_salary_slips.py b/erpnext/patches/v7_2/update_salary_slips.py
index 87eae3b..c694fc5 100644
--- a/erpnext/patches/v7_2/update_salary_slips.py
+++ b/erpnext/patches/v7_2/update_salary_slips.py
@@ -2,6 +2,10 @@
 from erpnext.hr.doctype.process_payroll.process_payroll import get_month_details
 
 def execute():
+	ss_columns = frappe.db.get_table_columns("Salary Slip")
+	if "fiscal_year" not in ss_columns or "month" not in ss_columns:
+		return
+		
 	salary_slips = frappe.db.sql("""select fiscal_year, month, name from `tabSalary Slip` 
 				where (month is not null and month != '') 
 				and (fiscal_year is not null and fiscal_year != '') and