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)
%}