mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-31 23:33:43 +00:00
fix: patch to update child table parentfield name in pos closing entry (#48008)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import frappe
|
||||
from frappe.model.utils.rename_field import rename_field
|
||||
|
||||
|
||||
def execute():
|
||||
rename_field("POS Closing Entry", "pos_transactions", "pos_invoices")
|
||||
rename_field("POS Closing Entry", "sales_invoice_transactions", "sales_invoices")
|
||||
rename_field("POS Closing Entry", "pos_transactions", "pos_invoices", validate=False)
|
||||
if frappe.db.exists("DocType", "Sales Invoice Reference"):
|
||||
rename_field("POS Closing Entry", "sales_invoice_transactions", "sales_invoices", validate=False)
|
||||
|
||||
Reference in New Issue
Block a user