I am trying to call MultiSelectDialog but I am receiving an error:
refresh: function(frm) {
frm.add_custom_button(__('Selecionar faturas'), function() {
var d = new frappe.ui.form.MultiSelectDialog({
doctype: "Sales Invoice",
target: frm,
setters: {
customer: frm.doc.cliente,
company: frm.doc.company
},
date_field: "posting_date",
get_query_filters: {
docstatus: 1,
company: frm.doc.company
},
action(selections) {
console.log(selections);
}
});
});
}
});
I am receiving this message:
Unable to handle success response
console.trace() TypeError: me.target.fields_dict[setter] is undefined