mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 22:48:27 +00:00
[fix] fee component rename patch fix
This commit is contained in:
@@ -7,6 +7,7 @@ import frappe
|
|||||||
from frappe.model.utils.rename_field import rename_field
|
from frappe.model.utils.rename_field import rename_field
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
if frappe.db.exists("DocType", "Fee Amount"):
|
||||||
frappe.rename_doc("DocType", "Fee Amount", "Fee Component")
|
frappe.rename_doc("DocType", "Fee Amount", "Fee Component")
|
||||||
for dt in ("Fees", "Fee Structure"):
|
for dt in ("Fees", "Fee Structure"):
|
||||||
frappe.reload_doctype(dt)
|
frappe.reload_doctype(dt)
|
||||||
|
|||||||
Reference in New Issue
Block a user