fix: removed validation for materials return (backport #43461) (#43463)

fix: removed validation for materials return (#43461)

(cherry picked from commit 1c7154c7ca)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
mergify[bot]
2024-10-01 14:26:38 +05:30
committed by GitHub
parent ee2c8c869a
commit 9c0a17e4d5

View File

@@ -1594,10 +1594,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)