Why the below script is not working? My ERP is hosted on frappe cloud. I do not have access to the backend files. I’m trying to create report using Report>>New Report>>Script Report>>Is Standard = No
def execute(filters=None):
columns = [
{
"fieldname": "owner",
"label": "Owner",
"fieldtype": "Data",
"width": 120
},
{
"fieldname": "status",
"label": "Status",
"fieldtype": "Select",
"width": 100
}
]
# Make sure that the fields in the get_all call match those defined in the columns.
data = frappe.get_all("Attendance", fields=["owner", "status"])
return columns, data
‘Show Report’ is blank.