From a19150ddaf80e9db49f6d4f61ae46974c1b80cb1 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 1 Jun 2015 15:32:43 +0530 Subject: [PATCH] default account's custom query in company --- erpnext/setup/doctype/company/company.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/erpnext/setup/doctype/company/company.js b/erpnext/setup/doctype/company/company.js index 47f699d618..e8e2e73a7a 100644 --- a/erpnext/setup/doctype/company/company.js +++ b/erpnext/setup/doctype/company/company.js @@ -146,13 +146,12 @@ erpnext.company.setup_queries = function(frm) { erpnext.company.set_custom_query = function(frm, v) { var filters = { - "company": frm.doc.company, + "company": frm.doc.name, "is_group": 0 }; - for (var key in v[1]) filters[key] = v[1][key]; - + frm.set_query(v[0], function() { return { filters: filters