Hide duplicate button in sales order

Hello,

Is it possible that the Duplicate button in Sales Order will be hidden or the user will have no access to duplicate?

Thank you

Hi @ossphinc,

That for, please apply the client scrip for Sales Order.

frappe.ui.form.on('Sales Order', {
    refresh: function(frm) {
        frm.page.menu.find('[data-label="Menu"],[data-label="Duplicate"]').parent().parent().remove();
	}
});

Then reload (Ctrl+Shift+R) and check it.

Thank You!

4 Likes

Thank you