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