How to insert the values in child doctype

@frappe.whitelist()
def make_quality(source_name, target_doc=None):
	doc = get_mapped_doc("Quality Inspection", source_name, {
		"Quality Inspection": {
			"doctype": "Stock Entry",
			"validation": {
				"docstatus": ["=", 1]
			}
		},
		"Quality Inspection Item": {
			"doctype": "Stock Entry Detail",
			"field_map": {
				"stock_qty": "transfer_qty",
				"batch_no": "batch_no"
			},
		}
	}, target_doc)
	for d in doc.get("items"):
		if d.ins_status == "Accepted":
			row = doc.append("items", {
				"item_code": d.item_code,
				"ins_status":d.ins_status,
				"qty": str(d.qty),
				"uom":d.uom,
				"conversion_factor":str(d.conversion_factor),
				"stock_uom":d.stock_uom,
				"transfer_qty":str(d.transfer_qty)
				})
	return row

This is my code… I want to store one child doctype values into another. The values are fetched successfully but didn’t insert.

TurkerTunali
KanchanChauhan
Nasir_Khan

You need to save the doc record too, after the append:
doc.save()