chore: rename entry point

(cherry picked from commit 5fe0b20be1)
This commit is contained in:
ruthra kumar
2024-03-20 14:10:08 +05:30
committed by Mergify
parent d496a1e58e
commit fab5c1170d
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ frappe.ui.form.on("Transaction Deletion Record", {
frm.add_custom_button(execute_btn, () => { frm.add_custom_button(execute_btn, () => {
// Entry point for chain of events // Entry point for chain of events
frm.call({ frm.call({
method: "process_tasks", method: "start_deletion_tasks",
doc: frm.doc, doc: frm.doc,
}); });
}); });

View File

@@ -201,7 +201,7 @@ class TransactionDeletionRecord(Document):
) )
@frappe.whitelist() @frappe.whitelist()
def process_tasks(self): def start_deletion_tasks(self):
# This method is the entry point for the chain of events that follow # This method is the entry point for the chain of events that follow
self.db_set("status", "Running") self.db_set("status", "Running")
self.enqueue_task(task="Delete Bins") self.enqueue_task(task="Delete Bins")