mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
Removed BOM No from mandatory from Stock Entry against Production Order
This commit is contained in:
@@ -185,9 +185,6 @@ class StockEntry(StockController):
|
|||||||
|
|
||||||
def validate_production_order(self):
|
def validate_production_order(self):
|
||||||
if self.purpose in ("Manufacture", "Material Transfer for Manufacture"):
|
if self.purpose in ("Manufacture", "Material Transfer for Manufacture"):
|
||||||
if not self.bom_no:
|
|
||||||
frappe.throw(_("BOM No is mandatory"))
|
|
||||||
|
|
||||||
# check if production order is entered
|
# check if production order is entered
|
||||||
if not self.production_order:
|
if not self.production_order:
|
||||||
frappe.throw(_("Production order number is mandatory for stock entry purpose manufacture"))
|
frappe.throw(_("Production order number is mandatory for stock entry purpose manufacture"))
|
||||||
|
|||||||
Reference in New Issue
Block a user