fix: Permission issue in Stock Entry (#19738)

This commit is contained in:
Marica 2019-11-28 19:39:49 +05:30 committed by Nabin Hait
parent f3b393f5e0
commit 8f48896261

View File

@ -569,7 +569,7 @@ def get_stock_and_account_balance(account=None, posting_date=None, company=None)
warehouse_account = get_warehouse_account_map(company)
account_balance = get_balance_on(account, posting_date, in_account_currency=False)
account_balance = get_balance_on(account, posting_date, in_account_currency=False, ignore_account_permission=True)
related_warehouses = [wh for wh, wh_details in warehouse_account.items()
if wh_details.account == account and not wh_details.is_group]