i have add print button then add this code to it
but when i print by any user have permission to this doctype the black print run but the red print not
i get this error
User *** does not have doctype access via role permission for document Print Format
User *** does not have access to this document