How to set default filters for different menu of the same doctype
For Eg; Items that can not be purchased wont appear in items menu under purchase module
Thanks …!
How to set default filters for different menu of the same doctype
For Eg; Items that can not be purchased wont appear in items menu under purchase module
Thanks …!
Before you navigate to the Item list, make sure that frappe.route_options are:
frappe.route_options = {
"is_purchase_item": 1
}
1 and 0 both added a default filter of No, But works with “is_purchase_item” : “Yes”
This works for custom buttons, I would like to know how to set default filters for menu Item added from config.
{
“type” : “doctype”,
"name: “Item”,
}
Is there a filter option available here?
Is there any other way to define menu items?