mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 21:49:18 +00:00
fix: removed validation for materials return (#43461)
This commit is contained in:
@@ -1611,10 +1611,6 @@ class StockEntry(StockController):
|
|||||||
if pro_doc.status == "Stopped":
|
if pro_doc.status == "Stopped":
|
||||||
msg = f"Transaction not allowed against stopped Work Order {self.work_order}"
|
msg = f"Transaction not allowed against stopped Work Order {self.work_order}"
|
||||||
|
|
||||||
if self.is_return and pro_doc.status not in ["Completed", "Closed"]:
|
|
||||||
title = _("Stock Return")
|
|
||||||
msg = f"Work Order {self.work_order} must be completed or closed"
|
|
||||||
|
|
||||||
if msg:
|
if msg:
|
||||||
frappe.throw(_(msg), title=title)
|
frappe.throw(_(msg), title=title)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user