mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
@@ -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,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -198,7 +198,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")
|
||||||
|
|||||||
Reference in New Issue
Block a user