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

This commit is contained in:
rohitwaghchaure
2024-09-24 22:05:23 +05:30
committed by GitHub
parent 05102a887f
commit 8c32ebee68
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):