Skip to content

Commit

Permalink
fix: not able to cancel Quality Inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure committed Sep 24, 2024
1 parent 444f085 commit e9f9e68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ frappe.ui.form.on("Quality Inspection", {

refresh: function (frm) {
// Ignore cancellation of reference doctype on cancel all.
frm.ignore_doctypes_on_cancel_all = [frm.doc.reference_type];
frm.ignore_doctypes_on_cancel_all = [frm.doc.reference_type, "Serial and Batch Bundle"];
},

item_code: function (frm) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ def on_submit(self):
self.update_qc_reference()

def on_cancel(self):
self.ignore_linked_doctypes = ("Serial and Batch Bundle")

self.update_qc_reference()

def on_trash(self):
Expand Down

0 comments on commit e9f9e68

Please sign in to comment.