mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-26 14:41:42 +01:00
chore: rename entry point
This commit is contained in:
@@ -23,7 +23,7 @@ frappe.ui.form.on("Transaction Deletion Record", {
|
||||
frm.add_custom_button(execute_btn, () => {
|
||||
// Entry point for chain of events
|
||||
frm.call({
|
||||
method: "process_tasks",
|
||||
method: "start_deletion_tasks",
|
||||
doc: frm.doc,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -198,7 +198,7 @@ class TransactionDeletionRecord(Document):
|
||||
)
|
||||
|
||||
@frappe.whitelist()
|
||||
def process_tasks(self):
|
||||
def start_deletion_tasks(self):
|
||||
# This method is the entry point for the chain of events that follow
|
||||
self.db_set("status", "Running")
|
||||
self.enqueue_task(task="Delete Bins")
|
||||
|
||||
Reference in New Issue
Block a user