2017-09-04 05:44:04 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
import frappe
|
|
|
|
from frappe.model.utils.rename_field import rename_field
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
frappe.reload_doc("setup", "doctype", "company")
|
2017-09-06 05:23:00 +00:00
|
|
|
if frappe.db.has_column('Company', 'sales_target'):
|
|
|
|
rename_field("Company", "sales_target", "monthly_sales_target")
|