mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 22:18:27 +00:00
fixed
This commit is contained in:
@@ -420,7 +420,7 @@ def validate_bom_no(item, bom_no):
|
|||||||
bom = frappe.get_doc("BOM", bom_no)
|
bom = frappe.get_doc("BOM", bom_no)
|
||||||
if not bom.is_active:
|
if not bom.is_active:
|
||||||
frappe.throw(_("BOM {0} must be active").format(bom_no))
|
frappe.throw(_("BOM {0} must be active").format(bom_no))
|
||||||
if not bom.docstatus == 1:
|
if bom.docstatus != 1:
|
||||||
if not getattr(frappe.flags, "in_test", False):
|
if not getattr(frappe.flags, "in_test", False):
|
||||||
frappe.throw(_("BOM {0} must be submitted").format(bom_no))
|
frappe.throw(_("BOM {0} must be submitted").format(bom_no))
|
||||||
if item and not (bom.item == item or \
|
if item and not (bom.item == item or \
|
||||||
|
|||||||
Reference in New Issue
Block a user