Frappe.db.get_values in Custom print format returns error

I am trying the below code to get items of the BOM inside the sales order:

	{% set ba = frappe.db.get_values('BOM Item', {'parent': row.default_bom}, '*', as_dict=1)

this returns :

TypeError: ‘NoneType’ object is not callable

Anyone have any idea why?

if I use the below, it returns only 1 value instead of all and works fine:

	{% set ba = frappe.db.get_value('BOM Item', {'parent': row.default_bom}, '*', as_dict=1)


If you are looking for get multiple value then use frappe.get_all instead of frappe.db.get_value

@Maheshwari_Bhavesh great Thank you!! that worked.