Hello,
In the Item DocType, how can I remove just the option of “All Item Groups” so that the user has to select one the of the child item groups?
Thanks,
Paul
Hello,
In the Item DocType, how can I remove just the option of “All Item Groups” so that the user has to select one the of the child item groups?
Thanks,
Paul
Hi @pmjd,
Please apply the client scrip for that.
frappe.ui.form.on('Item', {
refresh: function(frm) {
frm.set_query("item_group", () => {
return {
"filters": {
"is_group": 0
},
};
});
}
});
Output:
Thank You!