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,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