From a0c162c2d6e1fe62cff8a5bdf7769964e82f9a9d Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Sat, 12 Oct 2019 16:48:57 +0530 Subject: [PATCH] fix: project has not set in the sub assembly work order from production plan (#19284) --- erpnext/manufacturing/doctype/work_order/work_order.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/manufacturing/doctype/work_order/work_order.py b/erpnext/manufacturing/doctype/work_order/work_order.py index 678e7094164..0112b395467 100644 --- a/erpnext/manufacturing/doctype/work_order/work_order.py +++ b/erpnext/manufacturing/doctype/work_order/work_order.py @@ -477,6 +477,9 @@ class WorkOrder(Document): 'include_item_in_manufacturing': item.include_item_in_manufacturing }) + if not self.project: + self.project = item.get("project") + self.set_available_qty() def update_transaferred_qty_for_required_items(self):