fix: removed validation for materials return (#43461)

This commit is contained in:
rohitwaghchaure
2024-10-01 12:53:34 +05:30
committed by GitHub
parent 661efadf41
commit 1c7154c7ca

View File

@@ -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)