fix: Do not cancel reference document on Quality Inspection cancellation (#24198)
This commit is contained in:
		
							parent
							
								
									7b385046b6
								
							
						
					
					
						commit
						9fe7f235d0
					
				| @ -4,6 +4,11 @@ | |||||||
| cur_frm.cscript.refresh = cur_frm.cscript.inspection_type; | cur_frm.cscript.refresh = cur_frm.cscript.inspection_type; | ||||||
| 
 | 
 | ||||||
| frappe.ui.form.on("Quality Inspection", { | 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]; | ||||||
|  | 	}, | ||||||
|  | 
 | ||||||
| 	item_code: function(frm) { | 	item_code: function(frm) { | ||||||
| 		if (frm.doc.item_code) { | 		if (frm.doc.item_code) { | ||||||
| 			return frm.call({ | 			return frm.call({ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user