From e1d14d8ac26ab4f31ea9776ab86ca1893470c6fb Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Wed, 28 May 2025 15:37:09 +0530 Subject: [PATCH] perf: Ignore validating links Framework does this anyway and does it faster. --- .../doctype/stock_reconciliation/stock_reconciliation.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py index 08f2827f8fb..e678f9875a3 100644 --- a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py +++ b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py @@ -595,10 +595,6 @@ class StockReconciliation(StockController): ) ) - # validate warehouse - if not frappe.db.get_value("Warehouse", row.warehouse): - self.validation_messages.append(_get_msg(row_num, _("Warehouse not found in the system"))) - # if both not specified if row.qty in ["", None] and row.valuation_rate in ["", None]: self.validation_messages.append(