9 lines
296 B
Python
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")
|