mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-15 23:48:38 +00:00
fix: AttributeError in sufficient sub assembly warning
This commit is contained in:
@@ -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}."
|
||||
|
||||
Reference in New Issue
Block a user