Hi @ErpnextRaja,
Then you can use
// if sales user then hide
frappe.user.has_role('Sales User') == 1
// If not sales user then hide
frappe.user.has_role('Sales User') == -1
You can set conditions according to the scenario.
Reference: How to make a button visible to User with specific role - #4 by NCP
I hope this helps.
Thank You!