default account's custom query in company

This commit is contained in:
Nabin Hait 2015-06-01 15:32:43 +05:30
parent c17dff4b01
commit a19150ddaf

View File

@ -146,10 +146,9 @@ erpnext.company.setup_queries = function(frm) {
erpnext.company.set_custom_query = function(frm, v) { erpnext.company.set_custom_query = function(frm, v) {
var filters = { var filters = {
"company": frm.doc.company, "company": frm.doc.name,
"is_group": 0 "is_group": 0
}; };
for (var key in v[1]) for (var key in v[1])
filters[key] = v[1][key]; filters[key] = v[1][key];