fix: Sales Order to MR test failing
diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py
index 016ab14..c889237 100644
--- a/erpnext/manufacturing/doctype/production_plan/production_plan.py
+++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py
@@ -643,7 +643,8 @@
 
 	doc['mr_items'] = []
 
-	po_items = doc.get('po_items')
+	po_items = doc.get('po_items') if doc.get('po_items') else doc.get('items')
+	# Check for empty table or empty rows
 	if not po_items or not [row.get('item_code') for row in po_items if row.get('item_code')]:
 		frappe.throw(_("Items to Manufacture are required to pull the Raw Materials associated with it."),
 			title=_("Items Required"))