get_query to server side

This commit is contained in:
Saurabh
2013-07-08 18:45:55 +05:30
parent ed23cca9d3
commit 028755941e
18 changed files with 587 additions and 155 deletions

View File

@@ -132,7 +132,9 @@ cur_frm.fields_dict['master_name'].get_query = function(doc) {
cur_frm.fields_dict['parent_account'].get_query = function(doc) {
return {
query: "accounts.doctype.account.account.get_parent_account",
filters: { "company": doc.company}
filters: {
"group_or_ledger": "Group",
"company": doc.company
}
}
}
}