Apply filters for Doctype List View from Menu definition
This commit is contained in:
parent
2ed290b60b
commit
d910196b7c
1 changed files with 3 additions and 0 deletions
|
|
@ -102,6 +102,9 @@ frappe.pages['modules'].on_page_load = function(wrapper) {
|
|||
if(frappe.model.is_single(item.doctype)) {
|
||||
item.route = 'Form/' + item.doctype;
|
||||
} else {
|
||||
if (item.filters) {
|
||||
frappe.route_options=item.filters;
|
||||
}
|
||||
item.route="List/" + item.doctype
|
||||
//item.style = 'font-weight: 500;';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue