From 21df38bf18e51ec4a0def01278196cadb08ad005 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Tue, 16 Jul 2024 16:08:03 +0530 Subject: [PATCH] fix: bin deadlock issue (#42342) --- 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 bdd2ee0483c..c8e520d2c2b 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