mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 16:15:02 +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":
|
||||
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:
|
||||
frappe.throw(_(msg), title=title)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user