From a370c9a348bfb94e075ac53e89f859d7544ed44c Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Thu, 23 Jul 2026 15:16:13 +0530 Subject: [PATCH] fix: AttributeError in sufficient sub assembly warning --- .../doctype/production_plan/services/sub_assembly.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/production_plan/services/sub_assembly.py b/erpnext/manufacturing/doctype/production_plan/services/sub_assembly.py index 0f445d557ef..310fb3e2638 100644 --- a/erpnext/manufacturing/doctype/production_plan/services/sub_assembly.py +++ b/erpnext/manufacturing/doctype/production_plan/services/sub_assembly.py @@ -82,7 +82,7 @@ class SubAssemblyService: frappe.throw(_("Row #{0}: Please select the BOM No in Assembly Items").format(row.idx)) def _warn_sufficient_sub_assembly(self): - label = self.meta.get_field("skip_available_sub_assembly_item").label + label = self.doc.meta.get_field("skip_available_sub_assembly_item").label message = ( _( "As there are sufficient Sub Assembly Items, Work Order is not required for Warehouse {0}."