I’m trying to update some old customizations I inherited that worked for erpnext 10.
In ERPNext11 and ERPNext12 I get the error in the title for the below code:
frappe.listview_settings[‘Sales Invoice’] = {
onload: function(doclist) {
…
doclist.page.add_inner_button(__(“Export”), function() {
var args = {
cmd: ‘something.something.methodname’,
filters: doclist.get_filters_args()
}
open_url_post(frappe.request.url, args);
});
}
Any ideas?