From dbfffcc7de8e7da125876e54f8768464239bd75d 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 52f7f5f899..6d477f8d61 100644 --- a/erpnext/stock/utils.py +++ b/erpnext/stock/utils.py @@ -207,7 +207,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 -- GitLab