Merge pull request #23569 from marination/prod-order-reference-in-item
fix: Remove Production Order reference from Item Validation
This commit is contained in:
commit
ea8ea4abb5
@ -984,9 +984,7 @@ class Item(WebsiteGenerator):
|
|||||||
if self.stock_ledger_created():
|
if self.stock_ledger_created():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
elif frappe.db.get_value(doctype, filters={"item_code": self.name, "docstatus": 1}) or \
|
elif frappe.db.get_value(doctype, filters={"item_code": self.name, "docstatus": 1}):
|
||||||
frappe.db.get_value("Production Order",
|
|
||||||
filters={"production_item": self.name, "docstatus": 1}):
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def validate_auto_reorder_enabled_in_stock_settings(self):
|
def validate_auto_reorder_enabled_in_stock_settings(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user