Merge pull request #1675 from rkurungadam/develop

Apply filters for Doctype List View from Menu definition
This commit is contained in:
Rushabh Mehta 2016-04-06 14:54:47 +05:30
commit ba221269cb

View file

@ -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;';
}