fix: timeout while cancelling LCV (backport #42030) (#42031)

fix: timeout while cancelling LCV (#42030)

fix: timeout while canelling LCV
(cherry picked from commit 21bf7fd1f8)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
mergify[bot]
2024-06-25 18:11:41 +05:30
committed by GitHub
parent 61fe95a0bd
commit 2e76b9f9db

View File

@@ -1794,6 +1794,7 @@ def get_next_stock_reco(kwargs):
sle.actual_qty,
sle.has_batch_no,
)
.force_index("item_warehouse")
.where(
(sle.item_code == kwargs.get("item_code"))
& (sle.warehouse == kwargs.get("warehouse"))