mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-24 00:58:29 +00:00
fix: removed validation for materials return (#43461)
(cherry picked from commit 1c7154c7ca)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -1594,10 +1594,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