Custom Button Visualization

Hello,

There is User Role defined in the system ,who have only permissions to save and submit the purchase orders.So how to make ‘Make Invoice’ custom button invisible to that particular User Role?

You will have to add your conditions in the JS. You can use:

frappe.user.has_role(role)