I need to perform operations by selecting multiple documents in my doctype. For this, I used the example of ‘frappe.ui.form.MultiSelectDialog’ available in the ‘dialog api’. When I do this, the ‘second action’ (Make $doctype name$ button) feature comes up as default. I don’t want this. How can I hide this button
function TopluOde() {
new frappe.ui.form.MultiSelectDialog({
doctype: "Fazla Mesai Formlari",
primary_action_label: "Öde",
setters: {
employee: null,
ebys_onay_durumu: "Onaylandı"
},
date_field: "transaction_date",
get_query() {
return {
filters: { odeme_durumu: ['!=', "Ödendi"], hakedis_secimi_sonuc: ['=', "Ücret Ödemesi"] }
}
},
action(selections) {
frappe.call({
method: "erpnext.hr.doctype.fazla_mesai_formlari.events.TopluOdeme",
args: {
"form_listesi": selections,
},
});
if (selections.length > 0) {
frappe.show_alert({
message: __('Seçilen formlar ödendi olarak işaretlenmiştir.'),
indicator: 'green'
}, 5);
setTimeout(function() {
location.reload();
}, 2500);
} else {
frappe.show_alert({
message: __('İşlem yapılması için form seçilmemiştir..'),
indicator: 'red'
}, 5)
};
},
});
}