fix: AttributeError in sufficient sub assembly warning

This commit is contained in:
Mihir Kandoi
2026-07-23 15:16:13 +05:30
parent 276f69498a
commit a370c9a348

View File

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