brotherton-erpnext/erpnext/patches/v8_9/rename_company_sales_target_field.py
2017-09-06 10:53:26 +05:30

9 lines
296 B
Python

from __future__ import unicode_literals
import frappe
from frappe.model.utils.rename_field import rename_field
def execute():
frappe.reload_doc("setup", "doctype", "company")
if frappe.db.has_column('Company', 'sales_target'):
rename_field("Company", "sales_target", "monthly_sales_target")