From 5798409f695d8adadd5a5bbba971708015658250 Mon Sep 17 00:00:00 2001 From: Abdeali Chharchhoda Date: Mon, 27 Oct 2025 15:09:22 +0530 Subject: [PATCH] fix: add message for missing purchase orders in production plan --- .../manufacturing/doctype/production_plan/production_plan.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index a1422bcb265..b7fcb45b7ec 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py @@ -724,6 +724,9 @@ class ProductionPlan(Document): if not wo_list: frappe.msgprint(_("No Work Orders were created")) + if not po_list: + frappe.msgprint(_("No Purchase Orders were created")) + def make_work_order_for_finished_goods(self, wo_list, default_warehouses): items_data = self.get_production_items()