Issue with Disabled "Prepared Report" Button Still Showing "Generate New Report" Option

Hello,

I am facing an issue where, whenever I open the report, it shows “Generate new Report.” However, I have disabled the “Prepared Report” button in the report. Additionally, in ‘Role Permission for Page and Report,’ I have disabled the “Enable Prepared Report” button.

Thanks,
Anisha Jain

If it is a default report, then disable from the “Role Permission for Page and Report”, don’t change on the report side.

and again reload Ctrl+Shift+R and check it.

It is a Script Report and not a default report. However, the “Prepared Report” button seems to re-enable whenever I reload the report.

Reference:

You can check frappe/core/doctype/report/report.py.

#save the timestamp to automatically set to prepared
threshold = 15

if the query time exceeds 15 seconds, the “Prepare Report” button will automatically be re-enabled.
You can chang 15 to 60 or …