mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 07:22:13 +00:00
fix: bin deadlock issue (#42342)
(cherry picked from commit 21df38bf18)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -200,7 +200,7 @@ def get_bin(item_code, warehouse):
|
|||||||
if not bin:
|
if not bin:
|
||||||
bin_obj = _create_bin(item_code, warehouse)
|
bin_obj = _create_bin(item_code, warehouse)
|
||||||
else:
|
else:
|
||||||
bin_obj = frappe.get_doc("Bin", bin, for_update=True)
|
bin_obj = frappe.get_doc("Bin", bin)
|
||||||
bin_obj.flags.ignore_permissions = True
|
bin_obj.flags.ignore_permissions = True
|
||||||
return bin_obj
|
return bin_obj
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user