fix: Subcontracting through Production Plan
diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py
index 9ca05b9..132e1eb 100644
--- a/erpnext/manufacturing/doctype/production_plan/production_plan.py
+++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py
@@ -506,7 +506,7 @@
po.is_subcontracted = 1
for row in po_list:
po_data = {
- "item_code": row.production_item,
+ "fg_item": row.production_item,
"warehouse": row.fg_warehouse,
"production_plan_sub_assembly_item": row.name,
"bom": row.bom_no,
@@ -516,9 +516,6 @@
for field in [
"schedule_date",
"qty",
- "uom",
- "stock_uom",
- "item_name",
"description",
"production_plan_item",
]: