[fix] [patch] rename_company_sales_target_field.py
This commit is contained in:
parent
668d04548a
commit
6ef741554c
@ -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")
|
||||||
|
if frappe.db.has_column('Company', 'sales_target'):
|
||||||
rename_field("Company", "sales_target", "monthly_sales_target")
|
rename_field("Company", "sales_target", "monthly_sales_target")
|
||||||
|
Loading…
Reference in New Issue
Block a user