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}."