[patch] remove employee name salary structure (#10817)

* [patch] remove employee name salary structure

* Update remove_employee_from_salary_structure_parent.py
This commit is contained in:
Saurabh 2017-09-18 15:05:18 +05:30 committed by Nabin Hait
parent bc9006ff30
commit 2222f10720
2 changed files with 7 additions and 1 deletions

View File

@ -437,4 +437,5 @@ erpnext.patches.v8_7.fix_purchase_receipt_status
erpnext.patches.v8_6.rename_bom_update_tool
erpnext.patches.v8_9.set_print_zero_amount_taxes
erpnext.patches.v8_9.set_default_customer_group
erpnext.patches.v8_9.delete_gst_doctypes_for_outside_india_accounts
erpnext.patches.v8_9.remove_employee_from_salary_structure_parent
erpnext.patches.v8_9.delete_gst_doctypes_for_outside_india_accounts

View File

@ -0,0 +1,5 @@
import frappe
def execute():
if 'employee' in frappe.db.get_table_columns("Salary Structure"):
frappe.db.sql("alter table `tabEmployee` drop column employee")