From b92cd60743047d5900829daedcf042e40925f6fa Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Sun, 15 Jun 2025 19:17:01 +0530 Subject: [PATCH] fix: incorrect warehouse set from SO to MR --- .../manufacturing/doctype/production_plan/production_plan.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index 10a22184ee6..e0c47985590 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py @@ -1255,6 +1255,7 @@ def get_exploded_items(item_details, company, bom_no, include_non_stock_items, p item.purchase_uom, item_uom.conversion_factor, item.safety_stock, + bom.item.as_("main_bom_item"), ) .where( (bei.docstatus < 2) @@ -2003,6 +2004,7 @@ def get_raw_materials_of_sub_assembly_items( item.purchase_uom, item_uom.conversion_factor, item.safety_stock, + bom.item.as_("main_bom_item"), ) .where( (bei.docstatus == 1) -- GitLab