diff --git a/erpnext/stock/utils.py b/erpnext/stock/utils.py index 52f7f5f899b3f4a291d64a845eecce2b7686defb..6d477f8d616f7be40577d6dbbf959edcca9d6a31 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