Hi, Is there a way to add custom role to standard report access? Currently i am not able to add roles to standard reports.
Erpnext: V16.11
Hi, Is there a way to add custom role to standard report access? Currently i am not able to add roles to standard reports.
Erpnext: V16.11
@orey-aajaamu Standard reports are not editable via UI because they’re fixtures - locked by Frappe to prevent accidental overwrites on bench update.
Report
This gives access to the Report doctype generally - not report-specific control.
Heads up on v16
After a bench update, standard report fixtures may get reset and your role additions via console could be wiped. To make it permanent, export the report as a fixture in your custom app:
bench --site yoursite export-fixtures
Or add to your hooks.py:
fixtures = [
{"dt": "Report", "filters": [["name", "=", "Your Report Name"]]}
]
This ensures your role addition survives updates.
Sorry! Its working only if the user has access to original report. So for custom role not working.
Please define custom role for source doctype under role permission manager for action type (checkbox) Report. Similarly also needs to define Role permission manager for page and report for subject report for custom role as well.
Looks like you did not define Role Permission Manager for Page and Report for stock balance report and tag your custom role in there.
@ahsantareen Thank you very much. It worked.