fix: not able to cancel Quality Inspection (backport #43374) (#43375)

fix: not able to cancel Quality Inspection (#43374)

(cherry picked from commit 8c32ebee68)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
mergify[bot]
2024-09-25 00:02:24 +05:30
committed by GitHub
parent 0722aa5a3f
commit 40fbb1d6ff
2 changed files with 3 additions and 1 deletions

View File

@@ -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) {

View File

@@ -109,6 +109,8 @@ class QualityInspection(Document):
self.update_qc_reference()
def on_cancel(self):
self.ignore_linked_doctypes = "Serial and Batch Bundle"
self.update_qc_reference()
def on_trash(self):