This commit is contained in:
Suraj Shetty 2019-01-24 16:26:48 +05:30 committed by GitHub
parent dd0496f7aa
commit 7a45887fa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ def get_data(item_code=None, warehouse=None, item_group=None,
if DatabaseQuery('Warehouse', user=frappe.session.user).build_match_conditions():
filters.append(['warehouse', 'in', [w.name for w in frappe.get_list('Warehouse')]])
except frappe.PermissionError:
# user does not have access to warehouse
# user does not have access on warehouse
return []
return frappe.db.get_all('Bin', fields=['item_code', 'warehouse', 'projected_qty',
@ -34,4 +34,4 @@ def get_data(item_code=None, warehouse=None, item_group=None,
filters=filters,
order_by=sort_by + ' ' + sort_order,
limit_start=start,
limit_page_length='21')
limit_page_length='21')