From f48b03c6ece7916c107ff80e64cf837b986d6f0d 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 --- 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 6a7feeca4b5..1267fdc7418 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