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:
@@ -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) {
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user