From 540a8540d6d05195da100e71219225ad0bc6a3bd Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 19 Mar 2026 14:13:56 +0530 Subject: [PATCH] fix: deadlock issue for SLE (cherry picked from commit f48b03c6ece7916c107ff80e64cf837b986d6f0d) --- erpnext/stock/stock_ledger.py | 1 - 1 file changed, 1 deletion(-) diff --git a/erpnext/stock/stock_ledger.py b/erpnext/stock/stock_ledger.py index e6a42d28b15..d50d7fc5dba 100644 --- a/erpnext/stock/stock_ledger.py +++ b/erpnext/stock/stock_ledger.py @@ -2058,7 +2058,6 @@ def update_qty_in_future_sle(args, allow_negative_stock=False): where item_code = %(item_code)s and warehouse = %(warehouse)s - and voucher_no != %(voucher_no)s and is_cancelled = 0 and ( posting_datetime > %(posting_datetime)s