I have created custom field named item_cost in Item doctype and make custom script to toggle display it depends on role permission and i use this script
and when users that don't have permission to see such field make report builder and pick column they can see such field and print it
I alse use this line condition in depends_on field of that custom filed and in vain
eval:!doc.__islocal && in_list(frappe.user_roles, "System Manager")
Expected result
i hope custom script or depends_on conditions apply on fields in doctypes and report builder as well
OS version / distribution, Frappe install method, etc.
Description of the issue
I have created custom field named item_cost in Item doctype and make custom script to toggle display it depends on role permission and i use this script
and when users that don't have permission to see such field make report builder and pick column they can see such field and print it I alse use this line condition in depends_on field of that custom filed and in vain
eval:!doc.__islocal && in_list(frappe.user_roles, "System Manager")
Expected result
i hope custom script or depends_on conditions apply on fields in doctypes and report builder as well
OS version / distribution,
Frappe
install method, etc.