But I am stuck at saving Server Script.
This this is the code that I am trying to save but it is not getting saved.
@frappe.whitelist()
def get_processes(bomtemp):
bom_operations = frappe.db.sql(f""" SELECT name FROM `tabMy BOM Operation` WHERE 'parent'='{bomtemp}' """, as_dict=True)
return bom_operations
I keep getting this error.
Script: Invalid python code on line 4
return bom_operations
Please guide as to how to solve this.
Regards,