get_query

This commit is contained in:
Nabin Hait 2013-02-11 13:56:47 +05:30
parent 18a0c58cee
commit fdb4d49ae3

View File

@ -161,8 +161,10 @@ cur_frm.cscript.voucher_type = function(doc, cdt, cdn) {
cur_frm.fields_dict['entries'].grid.get_field('account').get_query = function(doc) {
return {
query: "accounts.utils.get_account_list",
filters: { company: doc.company }
filters: {
group_or_ledger: "Ledger",
company: doc.company
}
}
}