[fix] [patch] rename_company_sales_target_field.py

This commit is contained in:
Rushabh Mehta 2017-09-06 10:53:00 +05:30
parent 668d04548a
commit 6ef741554c

View File

@ -4,4 +4,5 @@ from frappe.model.utils.rename_field import rename_field
def execute(): def execute():
frappe.reload_doc("setup", "doctype", "company") frappe.reload_doc("setup", "doctype", "company")
rename_field("Company", "sales_target", "monthly_sales_target") if frappe.db.has_column('Company', 'sales_target'):
rename_field("Company", "sales_target", "monthly_sales_target")