diff --git a/erpnext/stock/utils.py b/erpnext/stock/utils.py index 636d620fad3..0067c321049 100644 --- a/erpnext/stock/utils.py +++ b/erpnext/stock/utils.py @@ -109,6 +109,8 @@ def get_stock_balance( from erpnext.stock.stock_ledger import get_previous_sle + frappe.has_permission("Item", "read", throw=True) + if posting_date is None: posting_date = nowdate() if posting_time is None: