mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-28 01:14:46 +00:00
[fix] [patch] rename_company_sales_target_field.py
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user