From 29ee2d46f0e493a3f22775a0cb7646555496c668 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 16 Jul 2024 16:30:11 +0530 Subject: [PATCH] fix: bin deadlock issue (backport #42342) (#42357) fix: bin deadlock issue (#42342) (cherry picked from commit 21df38bf18e51ec4a0def01278196cadb08ad005) Co-authored-by: rohitwaghchaure --- erpnext/stock/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/utils.py b/erpnext/stock/utils.py index 51d2708be24..ee5893eb826 100644 --- a/erpnext/stock/utils.py +++ b/erpnext/stock/utils.py @@ -200,7 +200,7 @@ def get_bin(item_code, warehouse): if not bin: bin_obj = _create_bin(item_code, warehouse) else: - bin_obj = frappe.get_doc("Bin", bin, for_update=True) + bin_obj = frappe.get_doc("Bin", bin) bin_obj.flags.ignore_permissions = True return bin_obj