Dear All
I want to edit the filter for the standard field like
I want to fetch all accounts (delete account type from the filter)
as per the below image
You can use form scripts to update the applied filter.
ref: Form Scripts
Add doctype_js
in hooks.py
doctype_js = {
"DocType Name": "path/to/.js",
}
then you can edit filter via
frappe.ui.form.on(doctype, {
refresh: function (frm) {
frm.set_query("field name", () => {
return {
filters: {
key: "value",
},
};
});
},
});