From de41abaaf29962df3614fb91d77a657430958a44 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 ae643406982..1e6cec59a5c 100644 --- a/erpnext/stock/stock_ledger.py +++ b/erpnext/stock/stock_ledger.py @@ -2046,7 +2046,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