chore: hide "Duplicate" button in PO
This commit is contained in:
parent
687329f571
commit
6f7e67db9d
@ -45,8 +45,17 @@ frappe.ui.form.on("Purchase Order", {
|
||||
},
|
||||
|
||||
refresh: function(frm) {
|
||||
if(frm.doc.is_old_subcontracting_flow)
|
||||
if(frm.doc.is_old_subcontracting_flow) {
|
||||
frm.trigger('get_materials_from_supplier');
|
||||
|
||||
$('a.grey-link').each(function () {
|
||||
var id = $(this).children(':first-child').attr('data-label');
|
||||
if (id == 'Duplicate') {
|
||||
$(this).remove();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
get_materials_from_supplier: function(frm) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user