fix: Return default if company not found (#15915)

This commit is contained in:
Shreya Shah 2018-11-06 17:24:45 +05:30 committed by Rushabh Mehta
parent 1a41929c6b
commit c704630d5f

View File

@ -16,7 +16,7 @@ def _execute(filters=None, additional_table_columns=None, additional_query_colum
if not filters: filters = {}
columns = get_columns(additional_table_columns)
company_currency = erpnext.get_company_currency(filters.company)
company_currency = erpnext.get_company_currency(filters.get('company'))
item_list = get_items(filters, additional_query_columns)
if item_list: